Bukkit/CraftBukkit — pull request #650 by wilsonsd (2012-01-24 01:10:40+00:00)
Title: Fix CraftLivingEntity.damage when the entity is an EntityComplex.

BUKKIT 589: if you call damage on an instance of EnderDragon, no damage
is done.

Reason for bug: damage calls Entity.damageEntity. But EntityComplex
overrides damageEntity to do nothing.

Fix: CraftComplexLiving should call EntityComplex.e instead of
Entity.damageEntity. e is the method that actually does damage to an
instance of EntityComplex. (We also have to change EntityComplex.e from
protected to public to CraftComplexLiving.damage can call it.)