Hornoads / AM2R-The-Horde-Multitroid

Source code for AM2R 1.5.2+ Multitroid, free of copyrighted assets and trademarks.
https://www.reddit.com/r/AM2R/
Other
3 stars 2 forks source link

Swimming mini hornoad crashes game if it kills Gravity Suit Samus #10

Closed Jesright73 closed 2 years ago

Jesright73 commented 2 years ago

Describe the bug Swimming mini hornoads are missing brackets in a section of the Character Collision event. This results in a crash if contact with this enemy reduces player health to 0 while gravity suit is equpped.

To Reproduce

  1. Equip Gravity suit (mucous membrane).
  2. go to a room with swimming mini hornoads.
  3. Allow the swimming mini hornoad to reduce health to 0.
  4. Behold a crash.

Expected behavior No crash

image

Game Version: Horde PR v1

Additional context


if (dodamage == 1)
{
with (other.id)
{
plantdrain = 1
-}
if (global.currentsuit == 2)
{
global.playerhealth -= (0.025 * oControl.mod_diffmult)
if (global.playerhealth <= 0 && state != DEFEATED)
 {
 alarm[0] = 6
state = DEFEATED
 }
 }
+}
}```