1120 {
1122 {
1123
1124 const auto found = std::find_if(std::begin(procTarget->GetAppliedAuras()), std::end(procTarget->GetAppliedAuras()),
1125 [&](std::pair<uint32, AuraApplication*> pair)
1126 {
1127 Aura const* aura = pair.second->GetBase();
1128 return ((aura->GetCasterGUID() == GetTarget()->GetGUID())
1129 && aura->GetSpellInfo()->SpellFamilyName == SPELLFAMILY_HUNTER
1130 && aura->GetSpellInfo()->SpellFamilyFlags.HasFlag(0xC000, 0x1080));
1131 });
1132
1133 if (found != std::end(procTarget->GetAppliedAuras()))
1134 {
1135 return true;
1136 }
1137 }
1138 return false;
1139 }
Unit * GetProcTarget() const
Definition Unit.h:461