v0.6.1: small tweak to wand of fireblast logic
This commit is contained in:
parent
b31fc10136
commit
3f587ffc47
|
@ -3,7 +3,7 @@ buildscript {
|
|||
jcenter()
|
||||
}
|
||||
dependencies {
|
||||
classpath 'com.android.tools.build:gradle:2.3.2'
|
||||
classpath 'com.android.tools.build:gradle:2.3.3'
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -74,8 +74,17 @@ public class WandOfFireblast extends DamageWand {
|
|||
|
||||
for( int cell : affectedCells){
|
||||
|
||||
if (Level.flamable[cell] || !Dungeon.level.adjacent(bolt.sourcePos, cell))
|
||||
//ignore caster cell
|
||||
if (cell == bolt.sourcePos){
|
||||
continue;
|
||||
}
|
||||
|
||||
//only ignite cells directly near caster if they are flammable
|
||||
if (!Dungeon.level.adjacent(bolt.sourcePos, cell)
|
||||
|| Level.flamable[cell]){
|
||||
GameScene.add( Blob.seed( cell, 1+chargesPerCast(), Fire.class ) );
|
||||
}
|
||||
|
||||
Char ch = Actor.findChar( cell );
|
||||
if (ch != null) {
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user