Page 1 of 1

[b34] Displace/creeping dark

Posted: Mon Oct 03, 2011 10:45 pm
by lukep
May be intended, but Displace cannot pass through creeping dark, as it blocks line of sight.

Re: [b34] Displace/creeping dark

Posted: Mon Oct 03, 2011 11:20 pm
by edge2054
Displace Damage?

I think that's a viable tactic. I mean Creeping Dark doesn't do much else does it?

It's not intended, the intention is that you can't Displace Damage through walls and kill monsters in vaults by hitting yourself in the face while spamming a regen infusion ;)

Re: [b34] Displace/creeping dark

Posted: Mon Oct 03, 2011 11:43 pm
by bricks
Displace is the instant-cast, line-of-sight, short-range teleport that Doomed can get.

Re: [b34] Displace/creeping dark

Posted: Tue Oct 04, 2011 12:00 am
by tiger_eye
Hmm, I don't know what's intended, but I should be able to shed some light on why it's working this way.

If the player has DarkVision and the target tile is only blocked by Creeping Dark, then "hasLOS(x,y)" would be true. However, Displace (in cursed/primal-magic) doesn't call "hasLOS". Instead, it requires that the player "has_knowledge" of the tile, which in this case is only true if the tile is naturally lit and has been seen. In a dark zone, the player will never be able to case Displace through Creeping Dark.

So, to allow Displace through CreepingDark if the player has DarkVision, remove the target parameter "requires_knowledge=true" and perform a call to hasLOS(x,y) to check for validity.