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