public override void OnApply(BuffInstance instance) { instance.ApplyBuffMod(AttackModHandler.Generate(EventFlag.ATTACKED, (atkInst) => { atkInst.IsDefended = true; })); }
public override void OnApply(BuffInstance instance) { instance.ApplyBuffMod(AttackModHandler.Generate(EventFlag.HIT_BY_ATTACK, (atkInst) => { OnTick(instance); })); }
public override void OnApply(BuffInstance instance) { instance.Target.GetComponent <AbilityCaster>().AddDisabler(); instance.ApplyBuffMod(AttackModHandler.Generate(EventFlag.HIT_BY_ATTACK, (atkInst) => { DamageInstance.Damage(instance.OriginEffect, instance.Caster, instance.Target, instance.Data.MainValue * (atkInst.IsCrit ? 2 : 1), instance.Data.MainType); instance.Remove(); })); }