MobArena/abilities/FireAura.java

29 lines
730 B
Java
Raw Normal View History

2012-03-01 00:19:17 +01:00
import org.bukkit.entity.Player;
import com.garbagemule.MobArena.framework.Arena;
import com.garbagemule.MobArena.waves.MABoss;
import com.garbagemule.MobArena.waves.ability.*;
@AbilityInfo(
name = "Fire Aura",
aliases = {"fireaura","auraoffire"}
)
public class FireAura implements Ability
{
/**
* How close players must be to be affected by the ability.
*/
private final int RADIUS = 5;
/**
* How many ticks the players should be on fire for.
*/
private final int TICKS = 20;
@Override
public void execute(Arena arena, MABoss boss) {
for (Player p : AbilityUtils.getNearbyPlayers(arena, boss.getEntity(), RADIUS))
p.setFireTicks(TICKS);
}
}