Wizards: Summoned wolves are one-hittable, and one per spell level
This commit is contained in:
parent
be5086e2a5
commit
db5e6ad745
@ -43,7 +43,7 @@ public class SpellSummonWolves extends Spell implements SpellClick, SpellClickBl
|
|||||||
|
|
||||||
Location loc = block.getLocation().add(0.5, 0, 0.5);
|
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;
|
Wizards.CreatureAllowOverride = true;
|
||||||
|
|
||||||
@ -57,11 +57,10 @@ public class SpellSummonWolves extends Spell implements SpellClick, SpellClickBl
|
|||||||
wolf.setBreed(false);
|
wolf.setBreed(false);
|
||||||
wolf.setCustomName(player.getDisplayName() + "'s Wolf");
|
wolf.setCustomName(player.getDisplayName() + "'s Wolf");
|
||||||
wolf.setRemoveWhenFarAway(false);
|
wolf.setRemoveWhenFarAway(false);
|
||||||
wolf.setMaxHealth(2);
|
wolf.setMaxHealth(0.5);
|
||||||
wolf.setHealth(2);
|
wolf.setHealth(0.5);
|
||||||
// wolf.addPotionEffect(new PotionEffect(PotionEffectType.SPEED, 9001, 0));
|
|
||||||
|
|
||||||
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);
|
UtilParticle.PlayParticle(ParticleType.LARGE_EXPLODE, loc, 0.8F, 0, 0.8F, 0, 4);
|
||||||
|
Loading…
Reference in New Issue
Block a user