mirror of
https://github.com/azerothcore/mod-ale
synced 2025-11-29 15:38:17 +08:00
Fix talent learning code to properly do updates
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user