public static ReturnTypes spell_acetum_primus(int sn, int level, CharacterInstance ch, object vo) { var victim = (CharacterInstance)vo; var lvl = 0.GetHighestOfTwoNumbers(level); var damage = (int)(1.3f * (2 * lvl * SmaugRandom.D4() + 7)); if (victim.SavingThrows.CheckSaveVsSpellStaff(lvl, victim)) { damage = 3 * damage / 4; } return(ch.CauseDamageTo(victim, damage, sn)); }