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