Scripts: Fix some code style issues in scripts
This commit is contained in:
@@ -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,33 +1736,33 @@ 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)
|
||||||
{
|
{
|
||||||
case 1:
|
case 1:
|
||||||
DoScriptText(SAY_IMPRISIONED_BERYL_1, me);
|
DoScriptText(SAY_IMPRISIONED_BERYL_1, me);
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
DoScriptText(SAY_IMPRISIONED_BERYL_2, me, caster);
|
DoScriptText(SAY_IMPRISIONED_BERYL_2, me, caster);
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
DoScriptText(SAY_IMPRISIONED_BERYL_3, me);
|
DoScriptText(SAY_IMPRISIONED_BERYL_3, me);
|
||||||
break;
|
break;
|
||||||
case 4:
|
case 4:
|
||||||
DoScriptText(SAY_IMPRISIONED_BERYL_4, me);
|
DoScriptText(SAY_IMPRISIONED_BERYL_4, me);
|
||||||
break;
|
break;
|
||||||
case 5:
|
case 5:
|
||||||
DoScriptText(SAY_IMPRISIONED_BERYL_5, me);
|
DoScriptText(SAY_IMPRISIONED_BERYL_5, me);
|
||||||
break;
|
break;
|
||||||
case 6:
|
case 6:
|
||||||
DoScriptText(SAY_IMPRISIONED_BERYL_6, me, caster);
|
DoScriptText(SAY_IMPRISIONED_BERYL_6, me, caster);
|
||||||
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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user