diff options
author | Trazom62 <none@none> | 2010-02-07 12:31:51 +0100 |
---|---|---|
committer | Trazom62 <none@none> | 2010-02-07 12:31:51 +0100 |
commit | 32ef5836163bc2d4f6270edf0a449d8e3d08a5cd (patch) | |
tree | 3130b602e2d6da0497cb5754935f0eb1f0e4a852 /src | |
parent | 4e500f7227645ff017d7f2bef1e836bf28ae6da0 (diff) |
Fix Mage Polymorph Reflect. Thanks breakerfly.
Fixes issue #652.
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/Unit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index e315f70cd30..eb3a0353c18 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -12431,7 +12431,7 @@ void Unit::IncrDiminishing(DiminishingGroup group) void Unit::ApplyDiminishingToDuration(DiminishingGroup group, int32 &duration,Unit* caster,DiminishingLevels Level, int32 limitduration) { - if (duration == -1 || group == DIMINISHING_NONE || caster->IsFriendlyTo(this)) + if (duration == -1 || group == DIMINISHING_NONE || (caster->IsFriendlyTo(this) && caster != this)) return; // test pet/charm masters instead pets/charmeds |