Ejemplo n.º 1
0
            void FilterTargetsInitial(std::list<WorldObject*>& unitList)
            {
                unitList.remove_if(OrientationCheck(GetCaster()));

                uint32 maxSize = uint32(GetCaster()->GetMap()->GetSpawnMode() & 1 ? 5 : 5);
                if (unitList.size() > maxSize)
                    Trinity::Containers::RandomResizeList(unitList, maxSize);
            }
Ejemplo n.º 2
0
 void SelectTarget(std::list<WorldObject*>& targets)
 {
     // Select Other orb, and filter targets between twos
     if (InstanceScript* instance = GetCaster()->GetInstanceScript())
     {
         if (Unit* orb0 =  ObjectAccessor::GetCreature(*GetCaster(), instance->GetData64(DATA_ORB_0)))
         {
             if (Unit* orb1 =  ObjectAccessor::GetCreature(*GetCaster(), instance->GetData64(DATA_ORB_1)))
             {
                 targets.remove_if(OrientationCheck(orb1, orb0));
             }
         }
     }
 }
Ejemplo n.º 3
0
 void FilterTargets(std::list<WorldObject*>& targets)
 {
     targets.remove_if(OrientationCheck(GetCaster()));
 }
Ejemplo n.º 4
0
 void FilterTargets(std::list<Unit*>& unitList)
 {
     unitList.remove_if (OrientationCheck(GetCaster()));
 }
void RadianceScript::FilterTargets(std::list<WorldObject*>& unitList)
{
    unitList.remove_if(OrientationCheck(GetCaster()));
}