Created
September 21, 2011 06:42
-
-
Save rsa/1231418 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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