[b37] Talents automatically target yourself while frozen

Where bugs go to lie down and rest

Moderator: Moderator

Post Reply
Message
Author
MarvinPA
Wayist
Posts: 28
Joined: Thu Dec 01, 2011 6:15 pm

[b37] Talents automatically target yourself while frozen

#1 Post by MarvinPA »

This results in instant, automatic suicide when firing a damage spell while frozen. I think in previous versions there was still the same interface problem, but it at least didn't deal damage to yourself? But changing the behaviour of a targeted spell to automatically fire at yourself seems like a pretty bad inconsistency either way.

bricks
Sher'Tul
Posts: 1262
Joined: Mon Jun 13, 2011 4:10 pm

Re: [b37] Talents automatically target yourself while frozen

#2 Post by bricks »

Which spell? They should damage the ice block, yes. It might be a problem with a talent-specific mechanic or weird targeting code. If it's all spells, that's a problem.
Sorry about all the parentheses (sometimes I like to clarify things).

MarvinPA
Wayist
Posts: 28
Joined: Thu Dec 01, 2011 6:15 pm

Re: [b37] Talents automatically target yourself while frozen

#3 Post by MarvinPA »

This was with Turn back the Clock in particular that caused the instant death.

yufra
Perspiring Physicist
Posts: 1332
Joined: Tue Jul 13, 2010 2:53 pm

Re: [b37] Talents automatically target yourself while frozen

#4 Post by yufra »

Did you by chance have TbtC above level 4 so that there are two bolts?
<DarkGod> lets say it's intended

MarvinPA
Wayist
Posts: 28
Joined: Thu Dec 01, 2011 6:15 pm

Re: [b37] Talents automatically target yourself while frozen

#5 Post by MarvinPA »

Yep.

yufra
Perspiring Physicist
Posts: 1332
Joined: Tue Jul 13, 2010 2:53 pm

Re: [b37] Talents automatically target yourself while frozen

#6 Post by yufra »

Then this is the same problem as other talents that have multiple targeting. Thanks for the report, though.
<DarkGod> lets say it's intended

tiger_eye
Perspiring Physicist
Posts: 889
Joined: Thu Feb 17, 2011 5:20 am

Re: [b37] Talents automatically target yourself while frozen

#7 Post by tiger_eye »

In the latest bugfix addon, you will get a chance to cancel target-able talents if you're in an iceblock. You will still only be able to target the iceblock though. This should help those with fat fingers or short memories.

tiger_eye
Perspiring Physicist
Posts: 889
Joined: Thu Feb 17, 2011 5:20 am

Re: [b37] Talents automatically target yourself while frozen

#8 Post by tiger_eye »

oops, but the following (very minor) change is needed:

Code: Select all

Index: game/modules/tome/class/Player.lua
===================================================================
--- game/modules/tome/class/Player.lua	(revision 4791)
+++ game/modules/tome/class/Player.lua	(working copy)
@@ -543,6 +543,9 @@
 --- Tries to get a target from the user
 function _M:getTarget(typ)
 	if self:attr("encased_in_ice") then
+		if type(typ) ~= "table" then
+			return self.x, self.y, self
+		end
 		local orig_range = typ.range
 		typ.range = 0
 		local x, y, act = game:targetGetForPlayer(typ)

Post Reply