forked from MagicBane/Server
vorg HA fix
This commit is contained in:
@@ -96,7 +96,8 @@ public class Item extends AbstractWorldObject {
|
||||
this.customName = name;
|
||||
|
||||
loadEnchantments();
|
||||
bakeInStats();
|
||||
if(this.getItemBase().isVorg() == false)
|
||||
bakeInStats();
|
||||
}
|
||||
|
||||
public Item(ItemBase itemBase, int ownerID,
|
||||
@@ -1232,15 +1233,6 @@ public class Item extends AbstractWorldObject {
|
||||
return;
|
||||
|
||||
if (this.getItemBase() != null)
|
||||
if(this.getItemBase().isVorg()){
|
||||
this.getEnchants().clear();
|
||||
for(String powerString : this.getItemBase().getVorgStats()){
|
||||
//AbstractPowerAction apa = PowersManager.getPowerActionByIDString(powerString);
|
||||
//apa.applyBakedInStatsForItem(this, 0);
|
||||
this.addPermanentEnchantment(powerString,0);
|
||||
}
|
||||
this.setName(this.getItemBase().getName());
|
||||
}else {
|
||||
for (Integer token : this.getItemBase().getBakedInStats().keySet()) {
|
||||
|
||||
effect = PowersManager.getEffectByToken(token);
|
||||
@@ -1253,7 +1245,6 @@ public class Item extends AbstractWorldObject {
|
||||
apa.applyBakedInStatsForItem(this, this.getItemBase().getBakedInStats().get(token));
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public final void loadEnchantments() {
|
||||
|
||||
Reference in New Issue
Block a user