public override void PostLogicTick() { if (Unit.Health < _healthUnit - 100) { Unit.RemoveBuff(this); return; } _healthUnit = Unit.Health; }
public override int OnDamage(int damage) { damage = (int)System.Math.Round((double)(damage / 2)); _shieldStrength -= damage; if (_shieldStrength <= 0) { Unit.RemoveBuff(this); } return(damage); }