Exemplo n.º 1
0
    public CastIntoEffect(Wizard w, Ability a, WizardEffect e, WizardState ret) : base(w)
    {
        allowsmovement = false;

        allowsabilities = false;

        effect = e;

        ab = a;

        retrn = ret;
    }
Exemplo n.º 2
0
        public void Wizard(Character target)
        {
            if (target == null)
            {
                return;
            }
            var wizCooldown = new WizardCooldown();

            if (Character is Player)
            {
                wizCooldown.Send(World.StorageManager.GetGameSession(Character.Id));
            }
            Character.Cooldowns.Add(new WizardCooldown());

            var wizEffect = new WizardEffect();

            wizEffect.OnStart(target);
            target.Cooldowns.Add(new WizardEffect());
        }
Exemplo n.º 3
0
        public void Wizard(Character target)
        {
            if (target == null || Character.Cooldowns.CooldownDictionary.Any(c => c.Value is WizardCooldown))
            {
                return;
            }

            var wizCooldown = new WizardCooldown();

            if (Character is Player)
            {
                wizCooldown.Send(World.StorageManager.GetGameSession(Character.Id));
            }
            Character.Cooldowns.Add(wizCooldown);

            var wizEffect = new WizardEffect();

            wizEffect.OnStart(target);
            target.Cooldowns.Add(wizEffect);

            GameClient.SendToPlayerView(Character, netty.commands.old_client.LegacyModule.write("0|v|" + Character.Id + "|" + target.Id + "|H|" + 8 + "|1|" + (Character is Player && ((Player)Character).Storage.PrecisionTargeterActivated ? 1 : 0)), true);
            GameClient.SendToPlayerView(Character, netty.commands.new_client.LegacyModule.write("0|v|" + Character.Id + "|" + target.Id + "|H|" + 8 + "|1|" + (Character is Player && ((Player)Character).Storage.PrecisionTargeterActivated ? 1 : 0)), true);
        }