zarqon
Well-known member
For fight.php relay overrides, functions that should refer to your current monster (such as last_monster(), monster_element(), etc.) still refer to your previous monster for the very first round of combat. After the first round/page load, these functions return the expected values for the current monster.
This led to some very confusing results when a table I had that displays combat options along with projected damage to the monster seemed to be considering monster resistances very capriciously.
It seems that mafia doesn't register the encounter until after the fight page has loaded -- which makes sense. However, it is problematic for relay overrides that want to use mafia's monster functions throughout combat. Is there a way around this?
This led to some very confusing results when a table I had that displays combat options along with projected damage to the monster seemed to be considering monster resistances very capriciously.
It seems that mafia doesn't register the encounter until after the fight page has loaded -- which makes sense. However, it is problematic for relay overrides that want to use mafia's monster functions throughout combat. Is there a way around this?