L2JMobius
Public Development => Shares/Contributions => Committed User Contributions => Topic started by: krzdev on April 18, 2022, 07:35:10 PM
-
Hello everyone,
There is a glitch in the village master that allows the player to duplicate their base class.
Just choose any subclass and the village master allows you to add a new subclass, which may be your base class.
Demo video:
I fixed with this:
diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/VillageMaster.java
index 9551fc7..851af3d 100644
--- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/VillageMaster.java
+++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/VillageMaster.java
@@ -960,7 +960,7 @@ public class VillageMaster extends Folk
int charClassId = player.getBaseClass();
if (charClassId >= 88)
{
- charClassId = player.getClassId().getParent().ordinal();
+ charClassId = ClassId.getClassId(charClassId).getParent().ordinal();
}
final Race npcRace = getVillageMasterRace();
-
Committed with https://bitbucket.org/MobiusDev/l2j_mobius/commits/2859a54a891c8c8bd42025b91ccc5aaa1123d6dd
Thanks :D