Beispiel #1
0
    public override void Effect(Character user, Skill skill, Battleground.Tile tile)
    {
        base.Effect(user, skill, tile);
        if (tile.getOccupant() != null)
        {
            switch (skill.getValue())
            {
            case 1:
                tile.getOccupant().CriticBuff(Stat.CRITIC_BUFF_1, duration);
                break;

            case 2:
                tile.getOccupant().CriticBuff(Stat.CRITIC_BUFF_2, duration);
                break;

            case 3:
                tile.getOccupant().CriticBuff(Stat.CRITIC_BUFF_3, duration);
                break;

            default:
                tile.getOccupant().CriticBuff(Stat.CRITIC_BUFF_1, duration);
                break;
            }
        }
    }
Beispiel #2
0
 public override void Effect(Character user, Skill skill, Battleground.Tile tile)
 {
     base.Effect(user, skill, tile);
     if (tile.getOccupant() != null)
     {
         user.AttackMagic(tile.getOccupant(), skill.getValue(), skill);
     }
 }
Beispiel #3
0
 public override void Effect(Character user, Skill skill, Battleground.Tile tile)
 {
     base.Effect(user, skill, tile);
     if (tile.getOccupant() != null)
     {
         tile.getOccupant().Heal(skill.getValue() + (int)user.getAtkmValue());
     }
 }
Beispiel #4
0
 public virtual void Effect(Character user, Skill skill, Battleground.Tile tile)
 {
 }
Beispiel #5
0
 public override void Effect(Character user, Skill skill, Battleground.Tile tile)
 {
     base.Effect(user, skill, tile);
     user.getMovement().MoveTo(tile.getIndex());
 }