[Mage/Immolate] Do not allow use whilst in water [PC-351]

This commit is contained in:
Ben 2016-05-23 01:23:08 +01:00
parent d019d27d23
commit e5b8636298

View File

@ -152,6 +152,12 @@ public class Immolate extends Skill
Remove(cur);
continue;
}
if (cur.getLocation().getBlock().getType() == Material.WATER || cur.getLocation().getBlock().getType() == Material.STATIONARY_WATER)
{
Remove(cur);
continue;
}
//Energy
if (!Factory.Energy().Use(cur, GetName(), 0.65 - (level * 0.05), true, true))