1061 {
1063 {
1064
1065 const auto found = std::find_if(std::begin(procTarget->GetAppliedAuras()), std::end(procTarget->GetAppliedAuras()),
1066 [&](std::pair<uint32, AuraApplication*> pair)
1067 {
1068 Aura const* aura = pair.second->GetBase();
1069 return ((aura->GetCasterGUID() == GetTarget()->GetGUID())
1070 && aura->GetSpellInfo()->SpellFamilyName == SPELLFAMILY_HUNTER
1071 && aura->GetSpellInfo()->SpellFamilyFlags.HasFlag(0xC000, 0x1080));
1072 });
1073
1074 if (found != std::end(procTarget->GetAppliedAuras()))
1075 {
1076 return true;
1077 }
1078 }
1079 return false;
1080 }
Unit * GetProcTarget() const
Definition Unit.h:442