void ChangeSummonPos(SpellEffIndex /*effIndex*/) { WorldLocation summonPos = *GetExplTargetDest(); Position offset = {0.0f, 0.0f, 15.0f, 0.0f}; summonPos.RelocateOffset(offset); SetExplTargetDest(summonPos); GetHitDest()->RelocateOffset(offset); }
void HandleDummy(SpellEffIndex /*effindex*/) { if (Unit* target = GetHitUnit()) { WorldLocation loc = target->GetWorldLocation(); SetExplTargetDest(loc); } }
void SpellValanarKineticBombSpellScript::ChangeSummonPos(SpellEffIndex /*effIndex*/) { WorldLocation summonPos = *GetExplTargetDest(); Position offset = {0.0f, 0.0f, 20.0f, 0.0f}; summonPos.RelocateOffset(offset); SetExplTargetDest(summonPos); GetHitDest()->RelocateOffset(offset); }