Exemple #1
0
 public static void IsSamePartyAndClass(SpellEffectHandler effectHandler, WorldObject target,
                                        ref SpellFailedReason failedReason)
 {
     DefaultTargetFilters.IsAllied(effectHandler, target, ref failedReason);
     if (failedReason != SpellFailedReason.Ok)
     {
         return;
     }
     DefaultTargetFilters.IsSameClass(effectHandler, target, ref failedReason);
 }
Exemple #2
0
 public static void IsInFrontAndFriendly(SpellEffectHandler effectHandler, WorldObject target,
                                         ref SpellFailedReason failedReason)
 {
     DefaultTargetFilters.IsInFrontOfCaster(effectHandler, target, ref failedReason,
                                            new TargetFilter(DefaultTargetFilters.IsFriendly));
 }