mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-24 14:16:31 +00:00
Scripts: Step 4 - Fixed all warnings inside scripts
issue #121 Next step: enabling -DWITH_WARNINGS and fix
This commit is contained in:
@@ -369,7 +369,7 @@ public:
|
||||
for (uint8 i = 0; i < count[phase]; ++i)
|
||||
{
|
||||
me->GetNearPoint(me, x, y, z, me->GetCombatReach(), 10.0f, rand_norm()*2*M_PI);
|
||||
if (cr = me->SummonCreature(randEntry(), x, y, z+2.0f, 0.0f, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 30000))
|
||||
if ((cr = me->SummonCreature(randEntry(), x, y, z+2.0f, 0.0f, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 30000)))
|
||||
{
|
||||
cr->CastSpell(cr, SPELL_TELEPORT_EFFECT, true);
|
||||
cr->AI()->AttackStart(me);
|
||||
@@ -380,7 +380,7 @@ public:
|
||||
else if (phase == 3)
|
||||
{
|
||||
me->GetNearPoint(me, x, y, z, me->GetCombatReach(), 20.0f, rand_norm()*2*M_PI);
|
||||
if (cr = me->SummonCreature(NPC_INFINITE_TIMERENDER, x, y, z, 0.0f, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 30000))
|
||||
if ((cr = me->SummonCreature(NPC_INFINITE_TIMERENDER, x, y, z, 0.0f, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 30000)))
|
||||
{
|
||||
cr->CastSpell(cr, SPELL_TELEPORT_EFFECT, true);
|
||||
cr->AI()->AttackStart(me);
|
||||
|
||||
Reference in New Issue
Block a user