Prechádzať zdrojové kódy

Use the old system message to show the damage when you hit a castle door or castle life crystal.

Charus 15 rokov pred
rodič
commit
641c65f382

+ 7 - 0
L2_GameServer/java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java

@@ -12921,7 +12921,14 @@ public final class L2PcInstance extends L2Playable
 		final SystemMessage sm;
 		
 		if (target.isInvul() && !(target instanceof L2NpcInstance))
+		{
 			sm = new SystemMessage(SystemMessageId.ATTACK_WAS_BLOCKED);
+		}
+		else if (target instanceof L2DoorInstance || target instanceof L2ControlTowerInstance)
+		{
+			sm = new SystemMessage(SystemMessageId.YOU_DID_S1_DMG);
+			sm.addNumber(damage);
+		}
 		else
 		{
 			sm = new SystemMessage(SystemMessageId.C1_GAVE_C2_DAMAGE_OF_S3);