v0.9.2: fixed seer shot using target pos and not landing pos

This commit is contained in:
Evan Debenham 2021-02-14 12:00:35 -05:00
parent ab2229e825
commit 071cc236e9

View File

@ -340,14 +340,16 @@ public class SpiritBow extends Weapon {
} else {
if (Actor.findChar(dst) == null
&& user.hasTalent(Talent.SEER_SHOT)
if (user.hasTalent(Talent.SEER_SHOT)
&& user.buff(Talent.SeerShotCooldown.class) == null){
int shotPos = throwPos(user, dst);
if (Actor.findChar(shotPos) == null) {
Talent.SeerShotTracker seerShot = Buff.affect(user, Talent.SeerShotTracker.class, 5 * user.pointsInTalent(Talent.SEER_SHOT));
seerShot.depth = Dungeon.depth;
seerShot.pos = dst;
seerShot.pos = shotPos;
Buff.affect(user, Talent.SeerShotCooldown.class, 20f);
}
}
super.cast(user, dst);
}