Skip to content

Instantly share code, notes, and snippets.

@rsa
Created September 21, 2011 06:42
Show Gist options
  • Select an option

  • Save rsa/1231418 to your computer and use it in GitHub Desktop.

Select an option

Save rsa/1231418 to your computer and use it in GitHub Desktop.
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index 374b791..ad1b84e 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -1129,7 +1129,7 @@ uint32 Unit::DealDamage(Unit *pVictim, uint32 damage, CleanDamage const* cleanDa
}
}
- if (damagetype != NODAMAGE && pVictim->GetTypeId() == TYPEID_PLAYER)
+ if (damage && damagetype != NODAMAGE && pVictim->GetTypeId() == TYPEID_PLAYER)
{
if (damagetype != DOT)
{
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment