mirror of
https://gitcode.com/GitHub_Trending/az/azerothcore-wotlk.git
synced 2026-07-12 03:33:54 +00:00
Core/Unit: added new script OnPlayerBeingCharmed
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user