v2.2.0: fixed storm clouds not clearing fire or damaging fiery enemies
This commit is contained in:
+2
-2
@@ -43,11 +43,11 @@ public class StormCloud extends Blob {
|
|||||||
if (cur[cell] > 0) {
|
if (cur[cell] > 0) {
|
||||||
Dungeon.level.setCellToWater(true, cell);
|
Dungeon.level.setCellToWater(true, cell);
|
||||||
if (fire != null){
|
if (fire != null){
|
||||||
fire.clear(i);
|
fire.clear(cell);
|
||||||
}
|
}
|
||||||
|
|
||||||
//fiery enemies take damage as if they are in toxic gas
|
//fiery enemies take damage as if they are in toxic gas
|
||||||
Char ch = Actor.findChar(i);
|
Char ch = Actor.findChar(cell);
|
||||||
if (ch != null
|
if (ch != null
|
||||||
&& !ch.isImmune(getClass())
|
&& !ch.isImmune(getClass())
|
||||||
&& Char.hasProp(ch, Char.Property.FIERY)){
|
&& Char.hasProp(ch, Char.Property.FIERY)){
|
||||||
|
|||||||
Reference in New Issue
Block a user