Spell/Script: Kill logs spam for spell_ioc_parachute_ic

Closes #23163
This commit is contained in:
Killyana
2019-04-17 16:40:25 +02:00
parent 6e011c974d
commit c318b3e16d

View File

@@ -190,6 +190,7 @@ class spell_ioc_parachute_ic : public SpellScriptLoader
void HandleTriggerSpell(AuraEffect const* /*aurEff*/)
{
PreventDefaultAction();
if (Player* target = GetTarget()->ToPlayer())
if (target->m_movementInfo.fallTime > 2000 && !target->GetTransport())
target->CastSpell(target, SPELL_PARACHUTE_IC, true);