Exemple #1
0
 void FilterTargets(std::list<WorldObject*>& unitList)
 {
     if(GetExplTargetWorldObject())
     {
         unitList.remove(GetExplTargetWorldObject());
     }
 }
            void FilterTargets(std::list<WorldObject*>& targets)
            {
                targets.remove(GetExplTargetWorldObject());

                if (targets.empty())
                    FinishCast(SPELL_FAILED_NO_VALID_TARGETS);
            }