mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-03-12 12:05:12 +00:00
refactor(Core): DespawnOrUnsummon (#23141)
This commit is contained in:
@@ -242,7 +242,7 @@ public:
|
||||
{
|
||||
me->GetMotionMaster()->MoveIdle();
|
||||
me->CastSpell(b, SPELL_CONSUME_SOUL, true);
|
||||
me->DespawnOrUnsummon(1);
|
||||
me->DespawnOrUnsummon(1ms);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -1153,7 +1153,7 @@ public:
|
||||
|
||||
ScriptedAI::EnterEvadeMode(why);
|
||||
if (me->IsSummon())
|
||||
me->ToTempSummon()->DespawnOrUnsummon(1);
|
||||
me->ToTempSummon()->DespawnOrUnsummon(1ms);
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
@@ -506,7 +506,7 @@ class spell_exploding_orb_auto_grow_aura : public AuraScript
|
||||
target->RemoveAurasDueToSpell(SPELL_AUTO_GROW);
|
||||
target->RemoveAurasDueToSpell(SPELL_EXPLODING_ORB_VISUAL);
|
||||
if (target->IsCreature())
|
||||
target->ToCreature()->DespawnOrUnsummon(2000);
|
||||
target->ToCreature()->DespawnOrUnsummon(2s);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -341,7 +341,7 @@ public:
|
||||
|
||||
Unit::Kill(c, c, false);
|
||||
}
|
||||
c->DespawnOrUnsummon(10000);
|
||||
c->DespawnOrUnsummon(10s);
|
||||
}
|
||||
pInstance->SetData(DATA_INSTANCE_PROGRESS, INSTANCE_PROGRESS_FINISHED_INTRO);
|
||||
}
|
||||
@@ -1381,7 +1381,7 @@ class spell_pos_slave_trigger_closest : public SpellScript
|
||||
target->SetUInt32Value(UNIT_NPC_EMOTESTATE, 0);
|
||||
if (Creature* c = target->ToCreature())
|
||||
{
|
||||
c->DespawnOrUnsummon(7000);
|
||||
c->DespawnOrUnsummon(7s);
|
||||
c->AI()->Talk(0, p);
|
||||
c->m_Events.AddEvent(new SlaveRunEvent(*c), c->m_Events.CalculateTime(3000));
|
||||
}
|
||||
@@ -1406,7 +1406,7 @@ class spell_pos_rimefang_frost_nova : public SpellScript
|
||||
{
|
||||
Unit::Kill(caster, target);
|
||||
if (target->IsCreature())
|
||||
target->ToCreature()->DespawnOrUnsummon(30000);
|
||||
target->ToCreature()->DespawnOrUnsummon(30s);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user