Browse Source

Reflect damage fix, thanks _DS_

DrHouse 16 years ago
parent
commit
ee86d94fa4

+ 1 - 1
L2_GameServer/java/net/sf/l2j/gameserver/model/actor/L2Character.java

@@ -5110,7 +5110,7 @@ public abstract class L2Character extends L2Object
 				boolean isBow = (weapon != null && (weapon.getItemType() == L2WeaponType.BOW || weapon.getItemType() == L2WeaponType.CROSSBOW));
 				int reflectedDamage = 0;
 
-				if (!isBow) // Do not reflect if weapon is of type bow
+				if (!isBow && !target.isInvul()) // Do not reflect if weapon is of type bow or target is invunlerable
 				{
 					// Reduce HP of the target and calculate reflection damage to reduce HP of attacker if necessary
 					double reflectPercent = target.getStat().calcStat(Stats.REFLECT_DAMAGE_PERCENT,0,null,null);