浏览代码

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

Reported by JMD
Luks 9 年之前
父节点
当前提交
aec08cb245
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      L2J_Server/java/com/l2jserver/gameserver/data/sql/impl/AnnouncementsTable.java

+ 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))
 			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()));
 			}
 			}
 		}
 		}
 	}
 	}