/// <summary> /// Ajoute au royalmouth un buff d'invulnérabilité /// </summary> private void AddInvulnerabilityBuff() { StateBuff buff = new StateBuff(this.Fighter.BuffIdProvider.Pop(), this.Fighter, this.Fighter, this.InitmouthLevel, this.InvulnerabilityEffect, InitmouthSpellId, false, FightDispellableEnum.REALLY_NOT_DISPELLABLE, SpellStateRecord.GetState(this.InvulnerabilityEffect.Value)); this.Fighter.AddAndApplyBuff(buff); }
public override bool Apply(Fighter[] targets) { SpellStateRecord stateRecord = SpellStateRecord.GetState(Effect.Value); if (stateRecord != null) { foreach (var target in targets) { base.AddStateBuff(target, stateRecord, Protocol.Enums.FightDispellableEnum.DISPELLABLE_BY_STRONG_DISPEL); } return(true); } else { return(false); } }