Ejemplo n.º 1
0
 public void GainStrengthWhenAllyRecievesDamage(object sender, OnUnitAppliedDamageEventArgs e)
 {
     if (!e.DamagedUnit.Equals(UnitWithAbility))
     {
         UnitWithAbility.AddWeaponStrength(WeaponStrengthGain);
     }
 }
Ejemplo n.º 2
0
 private void CallAction(object sender, OnUnitAppliedDamageEventArgs e)
 {
     if (ActionActingOnAppliedDamage is null)
     {
         return;
     }
     ActionActingOnAppliedDamage(sender, e);
 }