Ejemplo n.º 1
0
 private static void Harass(ReadyForSpellCastEventArgs args)
 {
     if (args.unit.IsMe)
     {
         Obj_AI_Base target = TargetSelector.GetTarget(Q.Range, TargetSelector.DamageType.Physical);
         if (target.IsValid <Obj_AI_Hero>())
         {
             _Harass(target);
         }
     }
 }
Ejemplo n.º 2
0
        private static void FireReady(AttackableUnit unit, AttackableUnit target)
        {
            ReadyForSpellCastEventArgs args = new ReadyForSpellCastEventArgs
            {
                target = target,
                unit   = unit
            };

            if (OnReadyForSpellCast != null)
            {
                OnReadyForSpellCast(args);
            }
        }