Scripts: Fix some code style issues in scripts
This commit is contained in:
@@ -2989,7 +2989,7 @@ void SpellMgr::LoadDbcDataCorrections()
|
|||||||
|
|
||||||
switch (spellInfo->Id)
|
switch (spellInfo->Id)
|
||||||
{
|
{
|
||||||
case 42730:
|
case 42730:
|
||||||
spellInfo->EffectTriggerSpell[EFFECT_1] = 42739;
|
spellInfo->EffectTriggerSpell[EFFECT_1] = 42739;
|
||||||
break;
|
break;
|
||||||
case 59735:
|
case 59735:
|
||||||
|
|||||||
@@ -133,7 +133,7 @@ public:
|
|||||||
struct boss_eregosAI : public BossAI
|
struct boss_eregosAI : public BossAI
|
||||||
{
|
{
|
||||||
boss_eregosAI(Creature* creature) : BossAI(creature, DATA_EREGOS_EVENT) { }
|
boss_eregosAI(Creature* creature) : BossAI(creature, DATA_EREGOS_EVENT) { }
|
||||||
|
|
||||||
void Reset()
|
void Reset()
|
||||||
{
|
{
|
||||||
_Reset();
|
_Reset();
|
||||||
|
|||||||
@@ -166,7 +166,7 @@ public:
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
enum TickingTimeBomb
|
enum TickingTimeBomb
|
||||||
{
|
{
|
||||||
SPELL_TICKING_TIME_BOMB_EXPLODE = 59687
|
SPELL_TICKING_TIME_BOMB_EXPLODE = 59687
|
||||||
};
|
};
|
||||||
@@ -189,7 +189,7 @@ class spell_ticking_time_bomb : public SpellScriptLoader
|
|||||||
if (GetCaster() == GetTarget())
|
if (GetCaster() == GetTarget())
|
||||||
{
|
{
|
||||||
GetTarget()->CastSpell(GetTarget(), SPELL_TICKING_TIME_BOMB_EXPLODE, true);
|
GetTarget()->CastSpell(GetTarget(), SPELL_TICKING_TIME_BOMB_EXPLODE, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Register()
|
void Register()
|
||||||
|
|||||||
@@ -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