From 32ef5836163bc2d4f6270edf0a449d8e3d08a5cd Mon Sep 17 00:00:00 2001 From: Trazom62 Date: Sun, 7 Feb 2010 12:31:51 +0100 Subject: Fix Mage Polymorph Reflect. Thanks breakerfly. Fixes issue #652. --HG-- branch : trunk --- src/game/Unit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 -- cgit v1.2.3