public static void ExtendedChangeAppearence(Fighter fighter, SpellLevelRecord level, ExtendedSpellEffect effect, List <Fighter> affecteds, short castcellid) { foreach (var target in affecteds) { LookBuff buff = new LookBuff((uint)target.BuffIdProvider.Pop(), 0, effect.BaseEffect.Duration, fighter.ContextualId, (short)level.SpellId, effect.BaseEffect.Delay); target.AddBuff(buff); } }
public LookBuff AddLookBuff(Fighter target, FightDispellableEnum dispelable) { int id = target.BuffIdProvider.Pop(); LookBuff buff = new LookBuff(id, target, Source, this.SpellLevel, Effect, this.SpellId, Critical, dispelable); target.AddAndApplyBuff(buff); return(buff); }