// sub_5CE92 internal static ushort GetSpellAffectTimeout(Spells spellId) { int var_4; if (spellId == Spells.cause_disease) { var_4 = ovr024.roll_dice(6, 1) * 10; } else if (spellId == Spells.spell_39 || spellId == Spells.spell_3d) { var_4 = ovr024.roll_dice(4, 5); } else if (spellId == Spells.spell_3b) { var_4 = (ovr024.roll_dice(4, 1) * 10) + 40; } else if (spellId == Spells.spell_3f) { if (gbl.game_state == GameState.Combat) { var_4 = ovr024.roll_dice(10, 2) * 10; } else { var_4 = (ovr024.roll_dice(10, 1) + 10) * 10; } } else if (spellId == Spells.neutralize_poison) { var_4 = 1440; } else { var_4 = gbl.spellCastingTable[(int)spellId].fixedDuration + (gbl.spellCastingTable[(int)spellId].perLvlDuration * ovr025.spellMaxTargetCount((int)spellId)); } return (ushort)var_4; }
static bool TeamMemberHasSpell(Spells spellId) { return gbl.TeamList.Exists(p => p.spellList.HasSpell((int)spellId)); }