cheesecookie
Member
This has been resolved in r15582: Track Ed defeats in _edDefeats, resets to 0 when fight is won or aborted. Add preference edDefeatAbort, defaulting to 2. When _edDefeats >= edDefeatAbort, abort at Like a Bat Into Hell for manual continuation. Remove Ka Coins if there is a cost to return to the fight.
Original Message below
So, I've been playing around with scripting Ed stuff and have encountered an issue with auto-aborting at 0 HP in order to utilize Ed's Undying powers. While it is possible to set the auto-recovery to not cause an abort, it doesn't seem possible to prevent the abort at HP == 0 that occurs specifically in src/net/sourceforge/kolmafia/moods/RecoveryManager.java::runBetweenBattleChecks lines 168-171
Can be replaced with:
Original Message below
So, I've been playing around with scripting Ed stuff and have encountered an issue with auto-aborting at 0 HP in order to utilize Ed's Undying powers. While it is possible to set the auto-recovery to not cause an abort, it doesn't seem possible to prevent the abort at HP == 0 that occurs specifically in src/net/sourceforge/kolmafia/moods/RecoveryManager.java::runBetweenBattleChecks lines 168-171
Code:
if ( KoLmafia.permitsContinue() && KoLCharacter.getCurrentHP() == 0 )
{
KoLmafia.updateDisplay( MafiaState.ABORT, "Insufficient health to continue (auto-abort triggered)." );
}
Can be replaced with:
Code:
if ( KoLmafia.permitsContinue() && KoLCharacter.getCurrentHP() == 0 && !KoLCharacter.isEd())
{
KoLmafia.updateDisplay( MafiaState.ABORT, "Insufficient health to continue (auto-abort triggered)." );
}
Last edited: