Update d_a_alink_dusk.cpp

This commit is contained in:
baxlek
2026-08-24 17:02:53 -05:00
committed by GitHub
parent a775418c66
commit c1213ef752
+6
View File
@@ -113,6 +113,12 @@ void daAlink_c::handleQuickTransform() {
return;
}
// Ensure Link is not underwater
if (checkNoResetFlg0(FLG0_SWIM_UP)) {
Z2GetAudioMgr()->seStart(Z2SE_SYS_ERROR, NULL, 0, 0, 1.0f, 1.0f, -1.0f, -1.0f, 0);
return;
}
// Use the game's default checks for if the player can currently transform
if (!m_midnaActor->checkMetamorphoseEnableBase()) {
Z2GetAudioMgr()->seStart(Z2SE_SYS_ERROR, NULL, 0, 0, 1.0f, 1.0f, -1.0f, -1.0f, 0);