Page 1 of 1

[1.0.1] Prohibit use of psychoportation with frozen chars

Posted: Sun Apr 14, 2013 6:33 am
by jenx
I pressed my psychoportation talent accidentally when frozen, and it triggered, giving me 29 cooldown next to a wrom that walks on nightmare roguelike. Needless to say I died.

I can't see why it couldn't be the case that you can't activate a talent like this when frozen.

Re: [1.0.1] Prohibit use of psychoportation with frozen char

Posted: Sun Apr 14, 2013 4:43 pm
by Hachem_Muche
If you are having trouble accidentally triggering talents, you should consider enabling confirmation for those talents.

ToME is quite good at not letting the player try to use abilities that cannot possible succeed. So here is a patch that prevents you from triggering teleportation when frozen:

Code: Select all

Index: game/modules/tome/data/talents/spells/conveyance.lua
===================================================================
--- game/modules/tome/data/talents/spells/conveyance.lua	(revision 6619)
+++ game/modules/tome/data/talents/spells/conveyance.lua	(working copy)
@@ -29,6 +29,7 @@
 	requires_target = function(self, t) return self:getTalentLevel(t) >= 4 end,
 	getRange = function(self, t) return 4 + self:combatTalentSpellDamage(t, 10, 15) end,
 	getRadius = function(self, t) return math.max(0, 7 - self:getTalentLevelRaw(t)) end,
+	on_pre_use = function(self, t) return not self:attr("encased_in_ice") end,
 	is_teleport = true,
 	action = function(self, t)
 		local target = self
@@ -108,6 +109,7 @@
 	requires_target = function(self, t) return self:getTalentLevel(t) >= 4 end,
 	getRange = function(self, t) return 100 + self:combatSpellpower(1) end,
 	getRadius = function(self, t) return 20 - self:getTalentLevel(t) end,
+	on_pre_use = function(self, t) return not self:attr("encased_in_ice") end,
 	is_teleport = true,
 	action = function(self, t)
 		local target = self

Re: [1.0.1] Prohibit use of psychoportation with frozen char

Posted: Mon Apr 15, 2013 12:00 am
by jenx
DG, can this be implemented?

Re: [1.0.1] Prohibit use of psychoportation with frozen char

Posted: Mon Apr 15, 2013 5:26 am
by Lowell
Greying it out would be a nice idea. In fact there are several situations in which this happens already, an example being that if you're pinned you can't use Rush or Shadowstep (it will refuse to work and tell you that it can't work). For new players, especially me, it wasn't clear that teleportation would fail when I was frozen since it wasn't greyed out like Rush usually is.

Re: [1.0.1] Prohibit use of psychoportation with frozen char

Posted: Thu Apr 18, 2013 8:38 pm
by Planetus
Given the fact that other talents already do this, I second the idea of greying out teleportation and psychoportation while frozen.

Re: [1.0.1] Prohibit use of psychoportation with frozen char

Posted: Sun Apr 21, 2013 4:18 am
by Omega Blue
Then again, 'porting maybe your only way out.