From e4bbedc09fca5c9a4d956650e4c754c0bdf33a43 Mon Sep 17 00:00:00 2001 From: Evildead666 Date: Mon, 18 May 2015 07:37:58 +0200 Subject: [PATCH] fix for last stand 1hp bug --- src/game/WorldHandlers/SpellAuras.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/WorldHandlers/SpellAuras.cpp b/src/game/WorldHandlers/SpellAuras.cpp index b126bdae..da07b2a9 100644 --- a/src/game/WorldHandlers/SpellAuras.cpp +++ b/src/game/WorldHandlers/SpellAuras.cpp @@ -3496,7 +3496,7 @@ void Aura::HandleAuraModIncreaseHealth(bool apply, bool Real) { if (int32(target->GetHealth()) > m_modifier.m_amount) { target->ModifyHealth(-m_modifier.m_amount); } - else + else if (int32(target->GetHealth()) > 0) { target->SetHealth(1); } target->HandleStatModifier(UNIT_MOD_HEALTH, TOTAL_VALUE, float(m_modifier.m_amount), apply); }