Skip to content

Commit

Permalink
[9099] Implement periodic dummy aura for spell 55592
Browse files Browse the repository at this point in the history
Also correct second cast, expected for spell 53520

Signed-off-by: NoFantasy <nofantasy@nf.no>
  • Loading branch information
NoFantasy committed Jan 1, 2010
1 parent ba32f0c commit cd35a68
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions src/game/SpellAuras.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7299,6 +7299,15 @@ void Aura::PeriodicDummyTick()
return;
case 53520: // Carrion Beetles
m_target->CastSpell(m_target, 53521, true, NULL, this);
m_target->CastSpell(m_target, 53521, true, NULL, this);
return;
case 55592: // Clean
switch(urand(0,2))
{
case 0: m_target->CastSpell(m_target, 55731, true); break;
case 1: m_target->CastSpell(m_target, 55738, true); break;
case 2: m_target->CastSpell(m_target, 55739, true); break;
}
return;
// Exist more after, need add later
default:
Expand Down
2 changes: 1 addition & 1 deletion src/shared/revision_nr.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "9098"
#define REVISION_NR "9099"
#endif // __REVISION_NR_H__

3 comments on commit cd35a68

@DrKLO
Copy link

@DrKLO DrKLO commented on cd35a68 Jan 2, 2010

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

                  m_target->CastSpell(m_target, 53521, true, NULL, this);
  •                m_target->CastSpell(m_target, 53521, true, NULL, this);
    

two same lines?

@insider42
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think this because of spell description: Summons 2 Carrion Beetles every second for 4 sec.
but effect: Effect Summon (29209) Value: 1
two same lines needed to summon 2 npc instead of 1

@NoFantasy
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, 2x is expected, 4 times. So 8 in total. I did not think of other ways to achieve this, but it may exist.

Please sign in to comment.