Spells

Spells

5.2k Downloads

Spells that do damage do not mark the caster as an aggressor.

Hypersonic opened this issue ยท 5 comments

commented

Steps to reproduce:

  1. Spawn mobs or animals that react directly to aggression (Wolves, Pigmen)
  2. Hurt them with a spell (Flamethrower)
  3. They will take damage, but not aggress on the caster.

Other notes:
I'm not sure if this is something we can enforce a rule for this from the api, but we should set a precedent for spell makers in some way, at the least.

commented

How about creature.setTarget(LivingEntity target)?
http://jd.bukkit.org/apidocs/org/bukkit/entity/Creature.html#setTarget()

commented

Why not both?

commented

Darn, GitHub comments don't have a like button.

commented

So it appears that this isn't something we can solve through the API, so spell writers need to somehow do this themselves. Not optimal, but okay.