Make sure all mounts are invincible, not just normal horses.

This commit is contained in:
Andreas Troelsen 2016-12-30 01:11:56 +01:00
parent b40b73ea25
commit fb1a87f71b

View File

@ -649,7 +649,7 @@ public class ArenaListener
onPetDamage(event, (Wolf) damagee, damager);
}
// Mount
else if (damagee instanceof Horse && monsters.hasMount(damagee)) {
else if (damagee instanceof AbstractHorse && monsters.hasMount(damagee)) {
onMountDamage(event, (Horse) damagee, damager);
}
// Player