public TriggerBuff(int id, FightActor target, FightActor caster, SpellEffectHandler effect, Spell spell, Spell parentSpell, bool critical, FightDispellableEnum dispelable, int priority, TriggerBuffApplyHandler applyTrigger, TriggerBuffRemoveHandler removeTrigger = null) : base(id, target, caster, effect, spell, critical, dispelable) { ParentSpell = parentSpell; ApplyTrigger = applyTrigger; RemoveTrigger = removeTrigger; Triggers = Effect.Triggers.Split('|').Select(GetTriggerFromString).ToList(); }
public TriggerBuff(int id, FightActor target, FightActor caster, EffectDice effect, Spell spell, bool critical, bool dispelable, BuffTriggerType trigger, TriggerBuffApplyHandler applyTrigger, TriggerBuffRemoveHandler removeTrigger, short customActionId) : base(id, target, caster, effect, spell, critical, dispelable, customActionId) { this.Trigger = trigger; this.Dice = effect; this.ApplyTrigger = applyTrigger; this.RemoveTrigger = removeTrigger; this.m_roundCreation = target.Fight.TimeLine.RoundNumber; }
public TriggerBuff AddTriggerBuff(FightActor target, TriggerBuffApplyHandler applyTrigger, TriggerBuffRemoveHandler removeTrigger) { var id = target.PopNextBuffId(); var buff = new TriggerBuff(id, target, Caster, this, Spell, Spell, Critical, DefaultDispellableStatus, Priority, applyTrigger, removeTrigger); target.AddBuff(buff); return(buff); }
public TriggerBuff(int id, FightActor target, FightActor caster, EffectDice effect, Spell spell, bool critical, int dispelable, BuffTriggerType trigger, TriggerBuffApplyHandler applyTrigger, TriggerBuffRemoveHandler removeTrigger) : base(id, target, caster, effect, spell, critical, dispelable) { this.Trigger = trigger; this.Dice = effect; this.ApplyTrigger = applyTrigger; this.RemoveTrigger = removeTrigger; }
public TriggerBuff AddTriggerBuff(FightActor target, bool dispelable, BuffTriggerType trigger, TriggerBuffApplyHandler applyTrigger, TriggerBuffRemoveHandler removeTrigger) { int id = target.PopNextBuffId(); TriggerBuff triggerBuff = new TriggerBuff(id, target, this.Caster, this.Dice, this.Spell, this.Critical, dispelable, trigger, applyTrigger, removeTrigger); target.AddAndApplyBuff(triggerBuff, true); return(triggerBuff); }
public TriggerBuff(int id, Fighter target, Fighter caster, SpellLevelRecord level, EffectInstance effect, ushort spellId, bool critical, FightDispellableEnum dispelable, TriggerType trigger, TriggerBuffApplyHandler applyTrigger, TriggerBuffRemoveHandler removeTrigger, short delay, short customActionId) : base(id, target, caster, level, effect, spellId, critical, dispelable, customActionId) { this.Trigger = trigger; this.ApplyTrigger = applyTrigger; this.RemoveTrigger = removeTrigger; this.Delay = delay; }