public static void Invisibility(Fighter fighter, SpellLevelRecord level, ExtendedSpellEffect effect, List <Fighter> affecteds, short castcellid) { foreach (var target in affecteds) { InvisibilityBuff buff = new InvisibilityBuff((uint)target.BuffIdProvider.Pop(), effect.BaseEffect.DiceNum, effect.BaseEffect.Duration, fighter.ContextualId, (short)level.SpellId, effect.BaseEffect.Delay); target.AddBuff(buff); } }
public override bool Apply(Fighter[] targets) { foreach (var target in targets) { InvisibilityBuff buff = new InvisibilityBuff(target.BuffIdProvider.Pop(), target, Source, SpellLevel, Effect, SpellId, Critical, FightDispellableEnum.DISPELLABLE); target.AddAndApplyBuff(buff); } return(true); }
public override bool Apply() { foreach (FightActor current in base.GetAffectedActors()) { InvisibilityBuff buff = new InvisibilityBuff(current.PopNextBuffId(), current, base.Caster, base.Dice, base.Spell, false, true); current.AddAndApplyBuff(buff, true); } return(true); }
protected override bool InternalApply() { foreach (var actor in GetAffectedActors()) { var buff = new InvisibilityBuff(actor.PopNextBuffId(), actor, Caster, this, Spell, false, FightDispellableEnum.DISPELLABLE); actor.AddBuff(buff); } return(true); }
public override bool Apply(Fighter[] targets) { var inital = this.Source.Point; InvisibilityBuff buff = new InvisibilityBuff(this.Source.BuffIdProvider.Pop(), this.Source, this.Source, this.SpellLevel, this.Effect, this.SpellId, this.Critical, FightDispellableEnum.REALLY_NOT_DISPELLABLE); this.Source.AddAndApplyBuff(buff); this.Source.Teleport(this.Source, this.CastPoint); return(true); }