aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormaximius <none@none>2009-10-14 22:33:50 -0700
committermaximius <none@none>2009-10-14 22:33:50 -0700
commit1d24b63248d89818a70db4438f6ac4f56ff457c2 (patch)
tree69ce68a57637fa0ceec7dae6c83cd5365d747380
parente36ba5f95827e6e69be105a4b1effffd40730c11 (diff)
*Fix an invalid condition that would never be true.
--HG-- branch : trunk
-rw-r--r--src/game/Wintergrasp.cpp2
1 files changed, 1 insertions, 1 deletions
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()));
}