public override void Apply(BattleUnit source, BattleUnit target)
        {
            DamageType dmgType = (source.unit.GetType() == typeof(Enemy))? ((Enemy)source.unit).DamageFocus : DamageType.None;
            Element    element = (source.unit.GetType() == typeof(Enemy))? ((Enemy)source.unit).Element : Element.Neutral;

            target.TakeDamage(source.curDmg, value1, dmgType, element, source);
        }
示例#2
0
 public override void Apply(BattleUnit source, BattleUnit target)
 {
     target.TakeDamage(source.curDmg, value1, DamageType.Physical, (Element)(Mathf.Clamp((int)value2, 1, (int)Element.Neutral)), source);
 }
示例#3
0
 public override void Apply(BattleUnit source, BattleUnit target)
 {
     target.TakeDamage(source.curDmg, -value1, DamageType.None, Element.Neutral, source);
     target.TakeDamage(target.unit.hpMax, -value2, DamageType.None, Element.Neutral, source);
 }