Wizards: Summoned wolves are one-hittable, and one per spell level

This commit is contained in:
libraryaddict 2015-03-25 19:25:32 +13:00
parent be5086e2a5
commit db5e6ad745

View File

@ -43,7 +43,7 @@ public class SpellSummonWolves extends Spell implements SpellClick, SpellClickBl
Location loc = block.getLocation().add(0.5, 0, 0.5);
for (int i = 0; i < 2 + getSpellLevel(player); i++)
for (int i = 0; i < getSpellLevel(player); i++)
{
Wizards.CreatureAllowOverride = true;
@ -57,11 +57,10 @@ public class SpellSummonWolves extends Spell implements SpellClick, SpellClickBl
wolf.setBreed(false);
wolf.setCustomName(player.getDisplayName() + "'s Wolf");
wolf.setRemoveWhenFarAway(false);
wolf.setMaxHealth(2);
wolf.setHealth(2);
// wolf.addPotionEffect(new PotionEffect(PotionEffectType.SPEED, 9001, 0));
wolf.setMaxHealth(0.5);
wolf.setHealth(0.5);
this._summonedWolves.put(wolf, System.currentTimeMillis() + (30L * 1000L));
_summonedWolves.put(wolf, System.currentTimeMillis() + (30L * 1000L));
}
UtilParticle.PlayParticle(ParticleType.LARGE_EXPLODE, loc, 0.8F, 0, 0.8F, 0, 4);