Esempio n. 1
0
 private static void OnAttack(Obj_AI_Base sender, GameObjectProcessSpellCastEventArgs args)
 {
     if (sender != null && args.Target != null)
     {
         OnBasicAttack?.Invoke(sender, args);
     }
 }
 public void BasicAttack()
 {
     if (IsIdle && !IsBasicAttackOnCD && LastAction != Action.BASIC_ATTACK)
     {
         IsOnTask          = true;
         IsBasicAttackOnCD = true;
         OnBasicAttack?.Invoke(this, null);
         LastAction = Action.BASIC_ATTACK;
         IsWalking  = false;
     }
 }