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

Where bugs go to lie down and rest

Moderator: Moderator

Post Reply
Message
Author
starsapphire
Thalore
Posts: 132
Joined: Sat Sep 27, 2014 11:33 am
Location: Irkkk

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

#1 Post 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.

darkgod
Master of Eyal
Posts: 10750
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

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

#2 Post by darkgod »

Fixed thanks :)
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)

starsapphire
Thalore
Posts: 132
Joined: Sat Sep 27, 2014 11:33 am
Location: Irkkk

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

#3 Post 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

Post Reply