Core/Unit: added new script OnPlayerBeingCharmed
This commit is contained in:
parent
6966eba2bb
commit
ca510dfd8d
3 changed files with 13 additions and 1 deletions
|
|
@ -16963,6 +16963,9 @@ bool Unit::SetCharmedBy(Unit* charmer, CharmType type, AuraApplication const* au
|
|||
CombatStop();
|
||||
DeleteThreatList();
|
||||
|
||||
if (GetTypeId() == TYPEID_PLAYER)
|
||||
sScriptMgr->OnPlayerBeingCharmed(ToPlayer(), charmer, _oldFactionId, charmer->getFaction());
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue