Fix talent learning code to properly do updates

This commit is contained in:
Rochet2
2017-07-19 18:12:20 +03:00
parent 6641f4a204
commit bf10f4f3a4

View File

@@ -3591,6 +3591,13 @@ namespace LuaPlayer
uint32 rank = Eluna::CHECKVAL<uint32>(L, 3); uint32 rank = Eluna::CHECKVAL<uint32>(L, 3);
player->LearnTalent(id, rank); player->LearnTalent(id, rank);
player->SendTalentsInfoData(false);
#ifndef TRINITY
// if player has a pet, update owner talent auras
if (player->GetPet())
player->GetPet()->CastOwnerTalentAuras();
#endif
return 0; return 0;
} }