mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Achievements: Implement many new ModifierTree types
This commit is contained in:
@@ -843,3 +843,11 @@ uint32 Garrison::Follower::GetItemLevel() const
|
||||
{
|
||||
return (PacketInfo.ItemLevelWeapon + PacketInfo.ItemLevelArmor) / 2;
|
||||
}
|
||||
|
||||
bool Garrison::Follower::HasAbility(uint32 garrAbilityId) const
|
||||
{
|
||||
return std::find_if(PacketInfo.AbilityID.begin(), PacketInfo.AbilityID.end(), [garrAbilityId](GarrAbilityEntry const* garrAbility)
|
||||
{
|
||||
return garrAbility->ID == garrAbilityId;
|
||||
}) != PacketInfo.AbilityID.end();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user