Skip to content

Commit

Permalink
Don't persist purple candled across combats, handle groveling gravel …
Browse files Browse the repository at this point in the history
…in AG better
  • Loading branch information
dsimich committed Nov 5, 2024
1 parent de7f7c6 commit cbcff03
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions RELEASE/scripts/autoscend.ash
Original file line number Diff line number Diff line change
Expand Up @@ -1654,6 +1654,7 @@ void resetState() {
set_property("_auto_tunedElement", ""); // Flavour of Magic elemental alignment
set_property("auto_nextEncounter", ""); // monster that was expected last turn
set_property("auto_habitatMonster", ""); // monster we want to cast Recall Facts: Monster Habitats
set_property("auto_purple_candled", ""); //monster we want to cast Blow the Purple Candle
set_property("auto_nonAdvLoc", false); // location is a non-adventure.php location
if(doNotBuffFamiliar100Run()) //some familiars are always bad
Expand Down
15 changes: 15 additions & 0 deletions RELEASE/scripts/autoscend/iotms/mr2023.ash
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,21 @@ boolean wantToThrowGravel(location loc, monster enemy)
// prevent overuse after breaking ronin or in casual
if(can_interact()) return false;

// only want certain enemies to free-kill in Avant Guard
if(in_avantGuard())
{
if(enemy.physical_resistance >= 100 && enemy.elemental_resistance >= 100)
{
return true;
}
//This is called in stage2 and auto_purple_candled is set in stage 4 so this should only ever show up on the purple candled enemy
if(get_property("auto_purple_candled").to_monster() == enemy)
{
return true;
}
return false;
}

// many monsters in these zones with similar names
if(loc == $location[The Battlefield (Frat Uniform)] &&
(contains_text(enemy.to_string(), "War Hippy")) ||
Expand Down

0 comments on commit cbcff03

Please sign in to comment.