Make all radiant damage set fire to undead entities
This commit is contained in:
@@ -42,6 +42,11 @@ public interface IElementalDamage {
|
||||
// Charges creepers when they are hit by shock damage
|
||||
EntityUtils.chargeCreeper((EntityCreeper)event.getEntityLiving());
|
||||
}
|
||||
|
||||
if(event.getEntityLiving().isEntityUndead()
|
||||
&& ((IElementalDamage)event.getSource()).getType() == DamageType.RADIANT){
|
||||
event.getEntityLiving().setFire(8); // Same as zombies/skeletons in sunlight
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -71,7 +71,7 @@ public class MagicDamage extends EntityDamageSource implements IElementalDamage
|
||||
FIRE,
|
||||
/** Frost (ice) damage from wizardry. Snow golems, ice wraiths and ice giants are immune. */
|
||||
FROST,
|
||||
/** Shock (lightning) damage from wizardry. Lightning wraiths and storm elementals are immune. */
|
||||
/** Shock (lightning) damage from wizardry. Charges creepers. Lightning wraiths and storm elementals are immune. */
|
||||
SHOCK,
|
||||
/** Wither damage from wizardry. Withers, wither skeletons and shadow wraiths are immune. */
|
||||
WITHER,
|
||||
@@ -81,7 +81,7 @@ public class MagicDamage extends EntityDamageSource implements IElementalDamage
|
||||
FORCE,
|
||||
/** Blast damage from wizardry. Affected by the blast protection enchantment. */
|
||||
BLAST,
|
||||
/** Radiant damage from wizardry. */
|
||||
/** Radiant damage from wizardry. Sets fire to undead entities. */
|
||||
RADIANT
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user