import <FirstThingsFirst.ash>
boolean sauceSplash() {
if(!(have_effect($effect[Jabañero Saucesphere]) >0 || have_effect($effect[Jalapeño Saucesphere]) >0))
return false;
int normal = numeric_modifier("spell damage");
if(normal >= 25)
return true;
int cold = numeric_modifier("cold spell damage");
int hot = numeric_modifier("hot spell damage");
if(have_skill($skill[Immaculate Seasoning]) && cold != hot && max(cold, hot) + normal >= 25)
return true;
if(monster_element() == $element[cold] && cold + normal >= 25
&& (have_skill($skill[Immaculate Seasoning]) || have_equipped($item[Gazpacho's Glacial Grimoire])))
return true;
if(monster_element() == $element[hot] && hot + normal >= 25
&& (have_skill($skill[Immaculate Seasoning]) || have_equipped($item[Codex of Capsaicin Conjuration])
|| have_equipped($item[Ol' Scratch's manacles]) ||(have_equipped($item[Ol' Scratch's ash can]) && my_class() == $class[Sauceror])))
return true;
return false;
}
void main(int initround, monster foe, string url) {
if(have_effect($effect[Burning Soul]) || have_effect($effect[Soul Freeze]) || !sauceSplash())
try_skill(url, $skill[Saucegeyser]);
else
try_skill(url, $skill[Wave of Sauce]);
}