Page 1 of 1

[1.6.5]Fumigate can't use when dual wielding steamgun

Posted: Fri Dec 27, 2019 8:43 am
by starsapphire
Since Anihilator use only single steamgun, this bug will only happen on Adventurer.

Steps to reproduce:
  • Choose an adventurer
  • Learn a Gunslinger talent and Fumigate.
  • Open your miasma engline and use Fumigate
Bug causes:
In tome-orcs/data/talents/steam/chemical-warfare.lua:194

Code: Select all

			if targets then
				local target = targets.dual and targets.main[1] or targets[1]
				local dist = core.fov.distance(self.x, self.y, targets[1].x, targets[1].y) - 1
				local mult = t.getDamage(self,t) + (t.getDamage(self,t) * eff.stacks)/2
it should be

Code: Select all

				local dist = core.fov.distance(self.x, self.y, target.x, target.y) - 1
The code of heavy-weapons are also wrong, however they won't trigger, because heavy weapons can never be dual wielded.

Re: [1.6.5]Fumigate can't use when dual wielding steamgun

Posted: Fri Dec 27, 2019 6:59 pm
by darkgod
Fixed thanks :)

Re: [1.6.5]Fumigate can't use when dual wielding steamgun

Posted: Sun Feb 02, 2020 2:59 pm
by starsapphire
In 1.6, after the heavy weapons rework changed its mechanism, the bug in tome-orcs/data/talents/steam/heavy-weapons.lua will trigger for dual wielding steamgun.
This bug can also trigger for annihilator+gunslinger randboss
Steps to reproduce:
  • Choose an adventurer
  • Learn a Gunslinger talent and Heavy Weapon.
  • Use flamethrower
The fix is same: change

Code: Select all

targets[1].x, targets[1].y
to

Code: Select all

target.x, target.y