Преглед изворни кода

Critical announcement fixed: it's displayed like normal announce on enterworld

Reported by JMD
Luks пре 9 година
родитељ
комит
aec08cb245

+ 3 - 1
L2J_Server/java/com/l2jserver/gameserver/data/sql/impl/AnnouncementsTable.java

@@ -112,7 +112,9 @@ public final class AnnouncementsTable
 		{
 			if (announce.isValid() && (announce.getType() == type))
 			{
-				player.sendPacket(new CreatureSay(0, Say2.ANNOUNCEMENT, player.getName(), announce.getContent()));
+				player.sendPacket(new CreatureSay(0, //
+				type == AnnouncementType.CRITICAL ? Say2.CRITICAL_ANNOUNCE : Say2.ANNOUNCEMENT, //
+				player.getName(), announce.getContent()));
 			}
 		}
 	}