public void TriggerPlayerHitsTarget(Creature player, Target target, CastedSpell castedSpell) { if (player.NeedToBreakBeforeFiringEvent(EventType.SpellEvents, Name)) { Debugger.Break(); } Expressions.Do(OnPlayerHitsTarget, player, target, castedSpell); }
public void TriggerSpellCastDieRollStopped(Creature player, Target target, CastedSpell castedSpell, RollResults dice) { if (player.NeedToBreakBeforeFiringEvent(EventType.SpellEvents, Name)) { Debugger.Break(); } Expressions.Do(OnSpellCastDieRollStopped, player, target, castedSpell, dice); }
public void TriggerTargetSaves(Creature player, Target target, CastedSpell castedSpell, object customData = null) { if (player.NeedToBreakBeforeFiringEvent(EventType.SpellEvents, Name)) { Debugger.Break(); } Expressions.Do(OnTargetSaves, player, target, castedSpell, null, customData); }
private void TriggerRollComplete(string arguments, Creature player) { if (player.NeedToBreakBeforeFiringEvent(EventType.FeatureEvents, Name)) { Debugger.Break(); } if (!string.IsNullOrWhiteSpace(OnRollComplete)) { Expressions.Do(DndUtils.InjectParameters(OnRollComplete, Parameters, arguments), player); } }
private void TriggerAfterPlayerSwingsWeapon(string arguments, Creature player) { if (player.NeedToBreakBeforeFiringEvent(EventType.FeatureEvents, Name)) { Debugger.Break(); } if (!string.IsNullOrWhiteSpace(AfterPlayerSwingsWeapon)) { Expressions.Do(DndUtils.InjectParameters(AfterPlayerSwingsWeapon, Parameters, arguments), player); } }
private void TriggerPlayerCastsSpell(string arguments, Creature player, CastedSpell spell) { if (Name == "WildMagicSurge") { //System.Diagnostics.Debugger.Break(); } if (player.NeedToBreakBeforeFiringEvent(EventType.FeatureEvents, Name)) { Debugger.Break(); } if (!string.IsNullOrWhiteSpace(OnPlayerCastsSpell)) { Expressions.Do(DndUtils.InjectParameters(OnPlayerCastsSpell, Parameters, arguments), player, null, spell); } }