|
@@ -611,6 +611,7 @@ public final class L2PcInstance extends L2PlayableInstance
|
|
|
private int _expertiseIndex; // index in EXPERTISE_LEVELS
|
|
|
private int _expertisePenalty = 0;
|
|
|
|
|
|
+ private boolean _isEnchanting = false;
|
|
|
private L2ItemInstance _activeEnchantItem = null;
|
|
|
private L2ItemInstance _activeEnchantAttrItem = null;
|
|
|
|
|
@@ -2246,6 +2247,10 @@ public final class L2PcInstance extends L2PlayableInstance
|
|
|
|
|
|
public void setActiveEnchantItem(L2ItemInstance scroll)
|
|
|
{
|
|
|
+ // If we dont have a Enchant Item, we are not enchanting.
|
|
|
+ if (scroll == null)
|
|
|
+ setIsEnchanting(false);
|
|
|
+
|
|
|
_activeEnchantItem = scroll;
|
|
|
}
|
|
|
|
|
@@ -2253,6 +2258,16 @@ public final class L2PcInstance extends L2PlayableInstance
|
|
|
{
|
|
|
return _activeEnchantItem;
|
|
|
}
|
|
|
+
|
|
|
+ public void setIsEnchanting(boolean val)
|
|
|
+ {
|
|
|
+ _isEnchanting = val;
|
|
|
+ }
|
|
|
+
|
|
|
+ public boolean isEnchanting()
|
|
|
+ {
|
|
|
+ return _isEnchanting;
|
|
|
+ }
|
|
|
|
|
|
/**
|
|
|
* Set the fists weapon of the L2PcInstance (used when no weapon is equiped).<BR><BR>
|