From b0d706b8e62619a5dd0fd8a6f80b17993af155a6 Mon Sep 17 00:00:00 2001 From: Antares Date: Tue, 17 Dec 2024 09:50:38 +0100 Subject: [PATCH] Update Entity.js Fixed #495 --- src/Engine/MapEngine/Entity.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Engine/MapEngine/Entity.js b/src/Engine/MapEngine/Entity.js index 8da675bc..44d88634 100644 --- a/src/Engine/MapEngine/Entity.js +++ b/src/Engine/MapEngine/Entity.js @@ -1373,12 +1373,17 @@ define(function( require ) srcWeapon = srcEntity.weapon; } - // Don't display skill names for mobs and hiding skills + // Don't display skill names for + // - hiding skills + // - mobs + // - skill level <= 0 if (!SkillNameDisplayExclude.includes(pkt.SKID) && (srcEntity.objecttype === Entity.TYPE_PC || srcEntity.objecttype === Entity.TYPE_DISGUISED || srcEntity.objecttype === Entity.TYPE_PET || srcEntity.objecttype === Entity.TYPE_HOM || srcEntity.objecttype === Entity.TYPE_MERC || srcEntity.objecttype === Entity.TYPE_ELEM) + && + pkt.level>0 ){ srcEntity.dialog.set( ( (SkillInfo[pkt.SKID] && SkillInfo[pkt.SKID].SkillName ) || 'Unknown Skill' ) + ' !!' ); }