Commit 20dfed9410a553fd9a953635eaf8ca2f4fd45a78

Authored by dg
1 parent c765102e

Fix mindstar in telekinetic grasp

git-svn-id: http://svn.net-core.org/repos/t-engine4@5161 51575b47-30f0-44d4-a5cc-537603b46e54
... ... @@ -256,6 +256,10 @@ newEntity{
256 256 },
257 257 resolvers.charm("completes a nature powered mindstar set", 20,
258 258 function(self, who, ms_inven)
  259 + if who:getInven("PSIONIC_FOCUS") and who:getInven("PSIONIC_FOCUS")[1] == self then
  260 + game.logPlayer(who, "You cannot use %s while using it as a psionic focus.", self.name)
  261 + return
  262 + end
259 263 who:showEquipment("Harmonize with which mindstar?", function(o) return o.subtype == "mindstar" and o.set_list and o ~= self and o.power_source and o.power_source.nature and not o.set_complete end, function(o)
260 264 -- remove any existing set properties
261 265 self.define_as =nil
... ... @@ -301,6 +305,10 @@ newEntity{
301 305 },
302 306 resolvers.charm("completes a psionic powered mindstar set", 20,
303 307 function(self, who, ms_inven)
  308 + if who:getInven("PSIONIC_FOCUS") and who:getInven("PSIONIC_FOCUS")[1] == self then
  309 + game.logPlayer(who, "You cannot use %s while using it as a psionic focus.", self.name)
  310 + return
  311 + end
304 312 who:showEquipment("Resonate with which mindstar?", function(o) return o.subtype == "mindstar" and o.set_list and o ~= self and o.power_source and o.power_source.psionic and not o.set_complete end, function(o)
305 313 -- remove any existing set properties
306 314 self.define_as =nil
... ... @@ -413,6 +421,10 @@ newEntity{
413 421 end,
414 422 resolvers.charm("call the drake in an elemental mindstar", 20,
415 423 function(self, who, ms_inven)
  424 + if who:getInven("PSIONIC_FOCUS") and who:getInven("PSIONIC_FOCUS")[1] == self then
  425 + game.logPlayer(who, "You cannot use %s while using it as a psionic focus.", self.name)
  426 + return
  427 + end
416 428 who:showEquipment("Call the drake in which mindstar?", function(o) return o.subtype == "mindstar" and o.is_drake_star and not o.set_list end, function(o)
417 429 -- remove any existing sets from the mindstar
418 430 o.set_list = nil
... ...