Explorar o código

Core: SummonStatus fixes. (General Invul Fix.. WTF.)

nBd %!s(int64=15) %!d(string=hai) anos
pai
achega
c19f1705f0

+ 6 - 6
L2_GameServer/java/com/l2jserver/gameserver/model/actor/status/PcStatus.java

@@ -65,12 +65,12 @@ public class PcStatus extends PlayableStatus
 
 		if (getActiveChar().isInvul())
 		{
-			if (attacker == getActiveChar())
-			{
-				if (!isDOT && !isHPConsumption)
-					return;
-			}
-			else
+			// other chars can't damage
+			if (attacker != getActiveChar())
+				return;
+
+			// only DOT and HP consumption allowed for damage self
+			if (!isDOT && !isHPConsumption)
 				return;
 		}
 

+ 1 - 0
L2_GameServer/java/com/l2jserver/gameserver/model/actor/status/SummonStatus.java

@@ -46,6 +46,7 @@ public class SummonStatus extends PlayableStatus
 							|| getActiveChar().getOwner().getDuelId() != attackerPlayer.getDuelId()))
 				attackerPlayer.setDuelState(Duel.DUELSTATE_INTERRUPTED);
 		}
+		
 		super.reduceHp(value, attacker, awake, isDOT, isHPConsumption);
 	}