Bug monster_defense() does not account for ML when fighting Ed

Alium

Member
Title explains it. There are 2 versions of this command, no input and a monster as an input. Only the no input one doesn't account for ML. Wiki states that the no input version accounts for in combat changes while the monster input version does not, did confirm that is true. Did the following while in the fight with Ed. Standard SC.

Code:
[522] The Lower Chambers (Empty/Empty/Ed's Chamber)
Preference lastEncounter changed from tomb servant to Ed the Undying
Encounter: Ed the Undying
Preference _lastCombatStarted changed from 20220401000610 to 20220401004034
Round 0: Alium loses initiative!
Round 1: You lose 65 hit points

> ash monster_defense()

Returned: 162

> ash monster_defense($monster[Ed the Undying])

Returned: 218

> ash monster_level_adjustment()

Returned: 56
Round 1: Alium casts CURSE OF WEAKSAUCE!
Round 2: Ed the Undying drops 8 attack power.
Round 2: Ed the Undying drops 9 defense.

> ash monster_defense($monster[Ed the Undying])

Returned: 218

> ash monster_defense()

Returned: 153

Also fought a tomb servant and that behaved as expected. Which is why I think this issue is only with Ed. Haven't tested with other bosses. My sample size is low. Happy to test other monsters if anyone would like. Tomb servant test:

Code:
[521] The Middle Chamber
Preference lastEncounter changed from Malevolent Tofurkey to tomb servant
Encounter: tomb servant
Preference _lastCombatStarted changed from 20220401000547 to 20220401000610
Round 0: Alium wins initiative!
Round 1: You lose 1 hit point

> ash monster_defense()

Returned: 209

> ash monster_defense($monster[tomb servant])

Returned: 209

> ash monster_level_adjustment()

Returned: 56
Round 1: Alium casts CURSE OF WEAKSAUCE!
Round 2: tomb servant drops 7 attack power.
Round 2: tomb servant drops 7 defense.

> ash monster_defense($monster[tomb servant])

Returned: 209

> ash monster_defense()

Returned: 202
 
Top