Advertisement
Guest User

Untitled

a guest
Jun 25th, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.91 KB | None | 0 0
  1. case 52694:                                 // Recall Eye of Acherus
  2.                 {
  3.                     if(!m_caster || m_caster->GetTypeId() != TYPEID_UNIT)
  4.                         return;
  5.  
  6.                     Unit *target = m_caster->GetCharmer();
  7.  
  8.                     if(!target || target->GetTypeId() != TYPEID_PLAYER)
  9.                         return;
  10.  
  11.                     ObjectGuid objNum = 0;
  12.                     m_caster->SetCharmerGuid(objNum);
  13.                     target->RemoveAurasDueToSpell(51852);
  14.                     target->SetCharm(NULL);
  15.  
  16.                     ((Player*)target)->GetCamera().ResetView();
  17.                     ((Player*)target)->SetClientControl(m_caster,0);
  18.                     ((Player*)target)->SetMover(NULL);
  19.  
  20.                     m_caster->CleanupsBeforeDelete();
  21.                     m_caster->AddObjectToRemoveList();
  22.                         return;
  23.                 }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement