v0.9.2: fixed seer shot using target pos and not landing pos
This commit is contained in:
parent
ab2229e825
commit
071cc236e9
|
@ -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){
|
||||
Talent.SeerShotTracker seerShot = Buff.affect(user, Talent.SeerShotTracker.class, 5*user.pointsInTalent(Talent.SEER_SHOT));
|
||||
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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user