Add mirage spell

This commit is contained in:
Electroblob77
2020-10-18 22:12:14 +01:00
parent cf8de05d1b
commit 89345d4fbc
9 changed files with 88 additions and 0 deletions
@@ -210,6 +210,12 @@ public final class WizardryEventHandler {
}
}
// Mirage
if(event.getTarget().isPotionActive(WizardryPotions.mirage)){
// Can't find players under mirage at all! (Pretty sure this excludes revenge-targeting)
((EntityLiving)event.getEntityLiving()).setAttackTarget(null);
}
// Blindness tweak
// I'm not going as far as potion core's implementation, this is just so it does *something* to mobs
if(event.getEntityLiving().isPotionActive(MobEffects.BLINDNESS) && !Loader.isModLoaded("potioncore")