Skip to content

Treat Undercity slime as water#3250

Closed
Stoabrogga wants to merge 1 commit intovmangos:developmentfrom
Stoabrogga:undercity_slime
Closed

Treat Undercity slime as water#3250
Stoabrogga wants to merge 1 commit intovmangos:developmentfrom
Stoabrogga:undercity_slime

Conversation

@Stoabrogga
Copy link
Contributor

🍰 Pullrequest

Treat the slime in the Undercity as water, so it won't hurt the players anymore. Don't know if this is the correct way to fix it, but it works.

Related commit:
f54db6b (PR #3118)

Proof

None

Issues

Closes #3246

How2Test

  • Extract maps/vmaps
  • Swim in the slime in Undercity

Todo / Checklist

None

@Wall-core
Copy link
Contributor

the issue is with the other commit that was added. It fixed the checks for naxxramas slime, but for some reason removed the checks for IsInSlime which excluded undercity slime. the IsInSlime() function should be fixed instead. Slime should not apply environmental damage; instead, it applies a debuff which causes the damage.

@Stoabrogga
Copy link
Contributor Author

@Wall-core There was no special handling of Undercity, the code parts were commented out:

// FIXME: Need to skip slime damage in Undercity, maybe someone can find better way to handle environmental damage
//if (IsInSlime() && m_zoneUpdateId != 1497)
// EnvironmentalDamage(DAMAGE_SLIME, urand(sWorld.getConfig(CONFIG_UINT32_ENVIRONMENTAL_DAMAGE_MIN), sWorld.getConfig(CONFIG_UINT32_ENVIRONMENTAL_DAMAGE_MAX)));

But in commit f54db6b the comment was deleted and this was added instead:

if (IsInSlime())
EnvironmentalDamage(DAMAGE_SLIME, urand(sWorld.getConfig(CONFIG_UINT32_ENVIRONMENTAL_DAMAGE_MIN), sWorld.getConfig(CONFIG_UINT32_ENVIRONMENTAL_DAMAGE_MAX)));

@Wall-core
Copy link
Contributor

what I'm saying though, is that IsInSlime() shouldn't even exist. There's no slime damage in vanilla that isn't applied through a debuff, as shown in the liquid dbcs. There only exists slime in Undercity and Naxxramas, and Naxxramas slime does not apply environmental damage either. This function should be removed entirely.

@Stoabrogga
Copy link
Contributor Author

Ok, thanks for the explanation. I'll close this PR and open a new one removing the "IsInSlime" function.

@Stoabrogga Stoabrogga closed this Mar 13, 2026
@Stoabrogga Stoabrogga deleted the undercity_slime branch March 13, 2026 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🐛 [Bug] Green slime river in Undercity have damage.

2 participants