Created
January 16, 2018 04:54
-
-
Save Langerz82/6f761a226810f23c7d3c78ba6de0289c 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 src/server/game/Entities/Unit/Unit.cpp src/server/game/Entities/Unit/Unit.cpp | |
index 86df2a6d13..031c5c97d6 100644 | |
--- src/server/game/Entities/Unit/Unit.cpp | |
+++ src/server/game/Entities/Unit/Unit.cpp | |
@@ -8681,7 +8682,7 @@ bool Unit::_IsValidAttackTarget(Unit const* target, SpellInfo const* bySpell, Wo | |
// can't attack invisible | |
if (!bySpell || !bySpell->HasAttribute(SPELL_ATTR6_CAN_TARGET_INVISIBLE)) | |
{ | |
- if (obj && !obj->CanSeeOrDetect(target, bySpell && bySpell->IsAffectingArea())) | |
+ if (obj && !obj->CanSeeOrDetect(target, bySpell && bySpell->IsAffectingArea() && bySpell->ProcFlags & PROC_FLAG_TAKEN_DAMAGE)) | |
return false; | |
else if (!obj) | |
{ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment