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