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