Make some changes to Nano Wizards

This commit is contained in:
Sam 2018-09-17 01:05:23 +01:00 committed by Alexander Meech
parent 1acf9485c8
commit 9caf91d429
4 changed files with 16 additions and 5 deletions

View File

@ -140,7 +140,7 @@ public class GameCurrencyManager extends GameManager implements CurrencyComponen
{
GameSessionData data = _sessionData.get(player);
if (data == null || data.Games == 0 || !_manager.getServerGroup().getRewardGems())
if (data == null || data.Games == 0)
{
return;
}

View File

@ -21,6 +21,7 @@ import com.mineplex.anticheat.checks.move.Speed;
import mineplex.core.common.util.C;
import mineplex.core.common.util.MapUtil;
import mineplex.core.common.util.UtilBlock;
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;
@ -185,9 +186,19 @@ public class Wizards extends ScoredSoloGame
UtilParticle.PlayParticleToAll(ParticleType.HUGE_EXPLOSION, location, null, 0.1F, 1, ViewDist.LONG);
location.getWorld().playSound(location, Sound.EXPLODE, 1, 0.7F);
for (Block block : UtilBlock.getBlocksInRadius(location, radius))
blockLoop: for (Block block : UtilBlock.getBlocksInRadius(location, radius))
{
MapUtil.QuickChangeBlockAt(block.getLocation(), Material.AIR);
Location blockLocation = block.getLocation();
for (Location spawn : _playersTeam.getSpawns())
{
if (UtilMath.offset2dSquared(spawn, blockLocation) < 9)
{
continue blockLoop;
}
}
MapUtil.QuickChangeBlockAt(blockLocation, Material.AIR);
}
UtilPlayer.getInRadius(location, radius + 2).forEach((player, scale) -> _manager.getDamageManager().NewDamageEvent(player, source, null, DamageCause.CUSTOM, damage, true, true, false, source.getName(), reason));

View File

@ -42,6 +42,6 @@ public class SpellFireball extends Spell
Player damager = (Player) ((Fireball) event.getEntity()).getShooter();
_game.createExplosion(damager, getName(), event.getEntity().getLocation(), 3, 14);
_game.createExplosion(damager, getName(), event.getEntity().getLocation(), 2, 14);
}
}

View File

@ -51,6 +51,6 @@ public class SpellTNT extends Spell
}
event.setCancelled(true);
_game.createExplosion(damager, getName(), event.getEntity().getLocation(), 5, 25);
_game.createExplosion(damager, getName(), event.getEntity().getLocation(), 4, 25);
}
}