private BaseAbility GetNewAbility(ClientCastAbilityData clientCastAbilityData, LivingEntity caster) { switch ((AbilityType)clientCastAbilityData.AbilityType) { case AbilityType.Fireball: return(new Fireball(clientCastAbilityData, caster)); break; } return(null); }
public override void Attack(LivingEntity entity) { var castData = new ClientCastAbilityData((short)AbilityType.Fireball, GetDirectionTowards(entity)); }
public abstract void Attack(LivingEntity entiy);