Code improvements.
This commit is contained in:
@ -53,17 +53,7 @@ public class ConditionChangeWeapon extends Condition
|
||||
if (_required)
|
||||
{
|
||||
final L2Weapon weaponItem = effector.getActiveWeaponItem();
|
||||
if (weaponItem == null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if (weaponItem.getChangeWeaponId() == 0)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if (effector.getActingPlayer().hasItemRequest())
|
||||
if ((weaponItem == null) || (weaponItem.getChangeWeaponId() == 0) || effector.getActingPlayer().hasItemRequest())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user