Fixed hero skills being given to subclasses.

Contributed by Sahar.
This commit is contained in:
MobiusDevelopment
2021-03-12 19:39:17 +00:00
parent 602abf9886
commit 49133f239f
19 changed files with 57 additions and 57 deletions

View File

@@ -6499,9 +6499,6 @@ public class PlayerInstance extends Playable
player.setPledgeType(rset.getInt("subpledge"));
// player.setApprentice(rset.getInt("apprentice"));
// Set Hero status if it applies.
player.setHero(Hero.getInstance().isHero(objectId));
if (clanId > 0)
{
player.setClan(ClanTable.getInstance().getClan(clanId));
@@ -6592,6 +6589,9 @@ public class PlayerInstance extends Playable
player.setSponsor(rset.getInt("sponsor"));
player.setLvlJoinedAcademy(rset.getInt("lvl_joined_academy"));
// Set Hero status if it applies.
player.setHero(Hero.getInstance().isHero(objectId));
CursedWeaponsManager.getInstance().checkPlayer(player);
// Set the x,y,z position of the PlayerInstance and make it invisible