Merge pull request #11508 from Dehravor/talent-wipe

Core/SkillHandler: Check if player is using proper NPC on talent reset
This commit is contained in:
Discover-
2014-01-25 05:39:43 -08:00

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);