[Mage/Immolate] Do not allow use whilst in water [PC-351]
This commit is contained in:
parent
d019d27d23
commit
e5b8636298
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user