private static void SpellDetector_OnSpellCast(SpellCastArgs args) { var casting = CastingEvadeSpell(); if (casting != null && casting.UseInEvade && casting.ShouldUse()) { _castingLastFrame = casting; } }
private static void SpellDetector_OnSpellCast(SpellCastArgs args) { if (args.Caster.Team == BattleRight.Core.Enumeration.Team.Enemy) { return; } var data = AbilityDatabase.Get(args.Caster.AbilitySystem.CastingAbilityId); if (data == null) { return; } TrackedCasts.Add(new TrackedCast(args.AbilityIndex, args.Caster, data)); }