Example #1
0
        private BaseAbility GetNewAbility(ClientCastAbilityData clientCastAbilityData, LivingEntity caster)
        {
            switch ((AbilityType)clientCastAbilityData.AbilityType)
            {
            case AbilityType.Fireball:
                return(new Fireball(clientCastAbilityData, caster));

                break;
            }

            return(null);
        }
Example #2
0
 public override void Attack(LivingEntity entity)
 {
     var castData
         = new ClientCastAbilityData((short)AbilityType.Fireball, GetDirectionTowards(entity));
 }
Example #3
0
 public abstract void Attack(LivingEntity entiy);