Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion contrib/vmap_extractor/vmapextract/wmo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ int WMOGroup::ConvertToVMAPGroupWmo(FILE* output, WMORoot* rootWMO, bool pPrecis
liquidEntry = 3; // magma
break;
case 3:
if (filename.find("Stratholme_raid") != string::npos)
if (rootWMO->RootWMOID == 4489) // Stratholme_raid.wmo WMOID == 4489
{
liquidEntry = 21; // Naxxramas slime
}
Expand Down
5 changes: 2 additions & 3 deletions src/game/Objects/Player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -991,9 +991,8 @@ void Player::OnMirrorTimerExpirationPulse(MirrorTimer::Type timer)
case MirrorTimer::ENVIRONMENTAL:
if (IsInMagma())
EnvironmentalDamage(DAMAGE_LAVA, urand(sWorld.getConfig(CONFIG_UINT32_ENVIRONMENTAL_DAMAGE_MIN), sWorld.getConfig(CONFIG_UINT32_ENVIRONMENTAL_DAMAGE_MAX)));
// 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)));
if (IsInSlime())
EnvironmentalDamage(DAMAGE_SLIME, urand(sWorld.getConfig(CONFIG_UINT32_ENVIRONMENTAL_DAMAGE_MIN), sWorld.getConfig(CONFIG_UINT32_ENVIRONMENTAL_DAMAGE_MAX)));
break;
case MirrorTimer::FEIGNDEATH:
// Vanilla: kill player on feigning death for too long
Expand Down