Scripts: Fix some code style issues in scripts

This commit is contained in:
Nay
2012-09-23 22:16:28 +01:00
parent 91fd408446
commit a7386bd1b3
4 changed files with 27 additions and 29 deletions
@@ -1696,9 +1696,7 @@ public:
void Reset() void Reset()
{ {
if (me->GetReactState() != REACT_PASSIVE) if (me->GetReactState() != REACT_PASSIVE)
{
me->SetReactState(REACT_PASSIVE); me->SetReactState(REACT_PASSIVE);
}
rebuff = 0; rebuff = 0;
} }
@@ -1738,7 +1736,7 @@ public:
void GotStinged(uint64 casterGUID) void GotStinged(uint64 casterGUID)
{ {
if(Player* caster = Player::GetPlayer(*me, casterGUID)) if (Player* caster = Player::GetPlayer(*me, casterGUID))
{ {
uint32 step = caster->GetAuraCount(SPELL_NEURAL_NEEDLE) + 1; uint32 step = caster->GetAuraCount(SPELL_NEURAL_NEEDLE) + 1;
switch (step) switch (step)
@@ -1763,7 +1761,7 @@ public:
break; break;
case 7: case 7:
DoScriptText(SAY_IMPRISIONED_BERYL_7, me); DoScriptText(SAY_IMPRISIONED_BERYL_7, me);
caster->KilledMonsterCredit(25478, 0); caster->KilledMonsterCredit(NPC_IMPRISONED_BERYL_SORCERER, 0);
break; break;
} }
} }