void HandleDummy(SpellEffIndex /*effIndex*/)
{
if (Unit* caster = GetCaster())
{
if (Player* _player = caster->ToPlayer())
{
if (GetSpellInfo()->Id == SPELL_MONK_ZEN_PILGRIMAGE)
{
_player->SaveRecallPosition(); save player position
_player->TeleportTo(870, 3818.55f, 1793.18f, 950.35f, _player->GetOrientation()); tele new position
}
else if (GetSpellInfo()->Id == SPELL_MONK_ZEN_PILGRIMAGE_RETURN)
{
// need help return player save position
_player->RemoveAura(SPELL_AURA_ZEN_PILGRIMAGE_RETURN); remove aura
}
}
}
help plz