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