Rewrite trainer handling to properly support multiple trainers on the same creature
This commit is contained in:
@@ -68,6 +68,12 @@ namespace Game
|
||||
return;
|
||||
}
|
||||
|
||||
if (!unit.CanResetTalents(_player))
|
||||
return;
|
||||
|
||||
if (!_player.PlayerTalkClass.GetGossipMenu().HasMenuItemType((uint)GossipOption.Unlearntalents))
|
||||
return;
|
||||
|
||||
// remove fake death
|
||||
if (GetPlayer().HasUnitState(UnitState.Died))
|
||||
GetPlayer().RemoveAurasByType(AuraType.FeignDeath);
|
||||
|
||||
Reference in New Issue
Block a user