Fix Anubis fireballs

This commit is contained in:
Vague Rant 2022-06-19 19:19:29 +10:00 committed by louist103
parent 5bf4128add
commit abcf713cc1
2 changed files with 3 additions and 1 deletions

View File

@ -991,6 +991,8 @@ namespace SohImGui {
Tooltip("Prevents the Forest Stage Deku Nut upgrade from becoming unobtainable after receiving the Poacher's Saw"); Tooltip("Prevents the Forest Stage Deku Nut upgrade from becoming unobtainable after receiving the Poacher's Saw");
EnhancementCheckbox("Fix Navi text HUD position", "gNaviTextFix"); EnhancementCheckbox("Fix Navi text HUD position", "gNaviTextFix");
Tooltip("Correctly centers the Navi text prompt on the HUD's C-Up button"); Tooltip("Correctly centers the Navi text prompt on the HUD's C-Up button");
EnhancementCheckbox("Fix Anubis fireballs", "gAnubisFix");
Tooltip("Make Anubis fireballs do fire damage when reflected back at them with the Mirror Shield");
ImGui::EndMenu(); ImGui::EndMenu();
} }

View File

@ -114,7 +114,7 @@ void func_809B27D8(EnAnubiceFire* this, GlobalContext* globalCtx) {
Audio_PlayActorSound2(&this->actor, NA_SE_IT_SHIELD_REFLECT_SW); Audio_PlayActorSound2(&this->actor, NA_SE_IT_SHIELD_REFLECT_SW);
this->cylinder.base.atFlags &= 0xFFE9; this->cylinder.base.atFlags &= 0xFFE9;
this->cylinder.base.atFlags |= 8; this->cylinder.base.atFlags |= 8;
this->cylinder.info.toucher.dmgFlags = 2; this->cylinder.info.toucher.dmgFlags = CVar_GetS32("gAnubisFix", 0) ? 0x800 : 2;
this->unk_15A = 30; this->unk_15A = 30;
this->actor.params = 1; this->actor.params = 1;
this->actor.velocity.x *= -1.0f; this->actor.velocity.x *= -1.0f;