fixed illusion

This commit is contained in:
NewGarbo 2015-11-26 00:44:13 +00:00
parent c150ea6175
commit 11deec75dd
2 changed files with 3 additions and 3 deletions

View File

@ -177,8 +177,8 @@ public class UtilPlayer
long lastUpdate = _hotbarUpdates.containsKey(name) ? _hotbarUpdates.get(name) : 0;;
long duration = System.currentTimeMillis() - lastUpdate;
return player.isBlocking() && UtilItem.isSword(player.getItemInHand())
&& duration >= BLOCKING_HOTBAR_DELAY;
return player.isBlocking();// && UtilItem.isSword(player.getItemInHand())
//&& duration >= BLOCKING_HOTBAR_DELAY;
}
/**

View File

@ -143,7 +143,7 @@ public class Illusion extends SkillActive
if (Factory.Condition().GetActiveCondition(cur, ConditionType.CLOAK) == null ||
!UtilPlayer.isBlocking(cur) ||
!Factory.Energy().Use(cur, GetName(), 0.625 - (getLevel(cur) * 0.025), true, true) ||
//!Factory.Energy().Use(cur, GetName(), 0.625 - (getLevel(cur) * 0.025), true, true) ||
skel == null ||
!skel.isValid())
{