From 1d24b63248d89818a70db4438f6ac4f56ff457c2 Mon Sep 17 00:00:00 2001 From: maximius Date: Wed, 14 Oct 2009 22:33:50 -0700 Subject: *Fix an invalid condition that would never be true. --HG-- branch : trunk --- src/game/Wintergrasp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/game/Wintergrasp.cpp b/src/game/Wintergrasp.cpp index ea0fe7bcb21..42f5e6f4e2f 100644 --- a/src/game/Wintergrasp.cpp +++ b/src/game/Wintergrasp.cpp @@ -773,7 +773,7 @@ void OPvPWintergrasp::CastTenacity(Unit *unit, int32 newStack) unit->SetAuraStack(spellId, unit, newStack); else unit->RemoveAura(spellId); - if (!unit->GetTypeId() == TYPEID_PLAYER || unit->isAlive()) + if (unit->GetTypeId() != TYPEID_PLAYER || unit->isAlive()) unit->SetHealth(uint32(unit->GetMaxHealth()*((float)unit->GetHealth()) / unit->GetMaxHealth())); } -- cgit v1.2.3