Fix Line Drive secondary check to verify if the player is in iframe

state.
This commit is contained in:
sigonasr2 2016-08-21 15:42:09 -05:00
parent b37ce95db4
commit 7667dc394b
2 changed files with 1 additions and 1 deletions

Binary file not shown.

View File

@ -3172,7 +3172,7 @@ public class TwosideKeeper extends JavaPlugin implements Listener {
!GenericFunctions.isViewingInventory(ev.getPlayer())) {
ev.setCancelled(true);
PlayerStructure pd = (PlayerStructure)playerdata.get(ev.getPlayer().getUniqueId());
boolean second_charge = (ev.getPlayer().hasPotionEffect(PotionEffectType.GLOWING) || (ev.getPlayer().hasPotionEffect(PotionEffectType.SLOW) && GenericFunctions.getPotionEffectLevel(PotionEffectType.SLOW, ev.getPlayer())==20));
boolean second_charge = (CustomDamage.isInIframe(ev.getPlayer()) || (ev.getPlayer().hasPotionEffect(PotionEffectType.SLOW) && GenericFunctions.getPotionEffectLevel(PotionEffectType.SLOW, ev.getPlayer())==20));
if ((ev.getPlayer().isOnGround() || second_charge) &&
pd.last_strikerspell+LINEDRIVE_COOLDOWN<getServerTickTime()) {
if (pd.target!=null &&