Core/SkillHandler: Check if player is using proper NPC on talent reset

This commit is contained in:
Dehravor
2014-01-25 10:55:29 +01:00
parent 9531073b77
commit e619246d58

View File

@@ -68,6 +68,9 @@ void WorldSession::HandleTalentWipeConfirmOpcode(WorldPacket& recvData)
return;
}
if (!unit->isCanTrainingAndResetTalentsOf(_player))
return;
// remove fake death
if (GetPlayer()->HasUnitState(UNIT_STATE_DIED))
GetPlayer()->RemoveAurasByType(SPELL_AURA_FEIGN_DEATH);