1051 {
1053 {
1054
1055 const auto found = std::find_if(std::begin(procTarget->GetAppliedAuras()), std::end(procTarget->GetAppliedAuras()),
1056 [&](std::pair<uint32, AuraApplication*> pair)
1057 {
1058 Aura const* aura = pair.second->GetBase();
1059 return ((aura->GetCasterGUID() == GetTarget()->GetGUID())
1060 && aura->GetSpellInfo()->SpellFamilyName == SPELLFAMILY_HUNTER
1061 && aura->GetSpellInfo()->SpellFamilyFlags.HasFlag(0xC000, 0x1080));
1062 });
1063
1064 if (found != std::end(procTarget->GetAppliedAuras()))
1065 {
1066 return true;
1067 }
1068 }
1069 return false;
1070 }
Unit * GetProcTarget() const
Definition: Unit.h:872