public bool DealStatus( Kernel_bin.Persistent_Statuses?statuses0, Kernel_bin.Battle_Only_Statuses?statuses1, Kernel_bin.Attack_Type type, Kernel_bin.Attack_Flags?flags) { if (StatusesActions.ContainsKey(type)) { int total = StatusesActions[type]( statuses0 ?? Kernel_bin.Persistent_Statuses.None, statuses1 ?? Kernel_bin.Battle_Only_Statuses.None, flags ?? Kernel_bin.Attack_Flags.None); return(total != 0); } return(false); }
public bool DealStatus( Kernel.PersistentStatuses?statuses0, Kernel.BattleOnlyStatuses?statuses1, Kernel.AttackType type, Kernel.AttackFlags?flags) { if (StatusesActions.ContainsKey(type)) { var total = StatusesActions[type]( statuses0 ?? Kernel.PersistentStatuses.None, statuses1 ?? Kernel.BattleOnlyStatuses.None, flags ?? Kernel.AttackFlags.None); return(total != 0); } return(false); }