Remove unused method
This commit is contained in:
parent
123f69be59
commit
285476b902
@ -26,7 +26,6 @@ import mineplex.core.common.util.UtilBlock;
|
||||
import mineplex.core.common.util.UtilEvent;
|
||||
import mineplex.core.common.util.UtilEvent.ActionType;
|
||||
import mineplex.core.common.util.UtilItem;
|
||||
import mineplex.core.common.util.UtilMath;
|
||||
import mineplex.core.common.util.UtilParticle;
|
||||
import mineplex.core.common.util.UtilParticle.ParticleType;
|
||||
import mineplex.core.common.util.UtilParticle.ViewDist;
|
||||
@ -34,9 +33,7 @@ import mineplex.core.common.util.UtilPlayer;
|
||||
import mineplex.core.recharge.Recharge;
|
||||
import mineplex.core.updater.UpdateType;
|
||||
import mineplex.core.updater.event.UpdateEvent;
|
||||
import mineplex.minecraft.game.core.damage.CustomDamageEvent;
|
||||
|
||||
import nautilus.game.arcade.game.games.smash.TeamSuperSmash;
|
||||
import nautilus.game.arcade.kit.Perk;
|
||||
|
||||
public class PerkMagmaBlast extends Perk
|
||||
@ -196,41 +193,4 @@ public class PerkMagmaBlast extends Perk
|
||||
// Particles
|
||||
UtilParticle.PlayParticleToAll(ParticleType.LAVA, proj.getLocation(), 0.1f, 0.1f, 0.1f, 0.1f, 50, ViewDist.LONG);
|
||||
}
|
||||
|
||||
//TODO REMOVE METHOD IF FIRE GONE DONT FORGET
|
||||
//@EventHandler
|
||||
public void damage(CustomDamageEvent event)
|
||||
{
|
||||
if (event.GetProjectile() == null || event.GetDamageeEntity() == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
Projectile proj = event.GetProjectile();
|
||||
|
||||
if (!(proj instanceof LargeFireball))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (!_proj.containsKey(proj))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
Player player = event.GetDamageePlayer();
|
||||
if(proj.getShooter() instanceof Player)
|
||||
{
|
||||
Player shooter = (Player) proj.getShooter();
|
||||
if(TeamSuperSmash.getTeam(Manager, shooter, true).contains(player))
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (UtilMath.offset(player, proj) < _fireRadius)
|
||||
{
|
||||
player.setFireTicks(_fireTicks);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user