Beispiel #1
0
 public void Heal(SourcedHeal heal)
 {
     OnHealing(heal);
     heal = CalculateHealingModifiers(heal);
     _healthable.Value += heal.Value;
     OnHealed(heal);
 }
Beispiel #2
0
        void CastBlackRoseLifeTap(IDamageable damageable)
        {
            var dmgVal = new Damage(_brDamage, DamageType.Magical, DamageFlags.Ability);
            var damage = new SourcedDamage(Self, dmgVal);

            damageable.TakeDamage(damage);
            var selfHeal = new SourcedHeal(Self, _brSelfHeal);

            Modules.Healable.Heal(selfHeal);
        }
Beispiel #3
0
        void CastRedRoseLifeTap(IHealable healable)
        {
            var heal = new SourcedHeal(Self, _rrHeal);

            healable.Heal(heal);
        }
Beispiel #4
0
 protected virtual SourcedHeal CalculateHealingModifiers(SourcedHeal heal) =>
 HealingModifiers.CalculateChange(this, heal);
Beispiel #5
0
 protected virtual void OnHealed(SourcedHeal heal) => Healed?.Invoke(this, heal);