Fix Line Drive secondary check to verify if the player is in iframe
state.
This commit is contained in:
parent
b37ce95db4
commit
7667dc394b
Binary file not shown.
@ -3172,7 +3172,7 @@ public class TwosideKeeper extends JavaPlugin implements Listener {
|
|||||||
!GenericFunctions.isViewingInventory(ev.getPlayer())) {
|
!GenericFunctions.isViewingInventory(ev.getPlayer())) {
|
||||||
ev.setCancelled(true);
|
ev.setCancelled(true);
|
||||||
PlayerStructure pd = (PlayerStructure)playerdata.get(ev.getPlayer().getUniqueId());
|
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) &&
|
if ((ev.getPlayer().isOnGround() || second_charge) &&
|
||||||
pd.last_strikerspell+LINEDRIVE_COOLDOWN<getServerTickTime()) {
|
pd.last_strikerspell+LINEDRIVE_COOLDOWN<getServerTickTime()) {
|
||||||
if (pd.target!=null &&
|
if (pd.target!=null &&
|
||||||
|
Loading…
x
Reference in New Issue
Block a user