diff --git a/BossHP/scripting/BossHP.sp b/BossHP/scripting/BossHP.sp index d76fa0a0..22be5d1e 100644 --- a/BossHP/scripting/BossHP.sp +++ b/BossHP/scripting/BossHP.sp @@ -909,6 +909,13 @@ public void OnGameFrame() g_aBoss.Erase(i); i--; + // TODO: Unhook instead of this + for(int entity = 0; entity < sizeof(g_aHurtEntityToBossIdx); entity++) + { + if(g_aHurtEntityToBossIdx[entity] == i) + g_aHurtEntityToBossIdx[entity] = 0xFF; + } + continue; }