Core/Achievements: Implement many new ModifierTree types

This commit is contained in:
Shauren
2019-11-15 23:25:01 +01:00
parent 36d6959ae6
commit aa8ad4d2fd
14 changed files with 1244 additions and 91 deletions

View File

@@ -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();
}