Skip to content
Snippets Groups Projects
Commit cf265cdb authored by dg's avatar dg
Browse files

Using Refit Golem while mounted on the golem will not create a duplicate golem

git-svn-id: http://svn.net-core.org/repos/t-engine4@1344 51575b47-30f0-44d4-a5cc-537603b46e54
parent e7f73d8f
No related branches found
No related tags found
No related merge requests found
......@@ -17,9 +17,16 @@
-- Nicolas Casalini "DarkGod"
-- darkgod@te4.org
local Stats = require "engine.interface.ActorStats"
local DamageType = require "engine.DamageType"
newEntity{
name = "solid ", prefix=true,
level_range = {1, 50},
rarity = 4,
cost = 5,
elec_proof = true,
}
--[[
*detection
*identify
......
......@@ -119,7 +119,7 @@ newTalent{
chat:invoke()
-- heal the golem
elseif game.level:hasEntity(self.alchemy_golem) and self.alchemy_golem.life < self.alchemy_golem.max_life then
elseif (game.level:hasEntity(self.alchemy_golem) or self:hasEffect(self.EFF_GOLEM_MOUNT)) and self.alchemy_golem.life < self.alchemy_golem.max_life then
if not ammo or ammo:getNumber() < 2 then
game.logPlayer(self, "You need to ready 2 alchemist gems in your quiver to heal your golem.")
return
......@@ -128,7 +128,7 @@ newTalent{
self.alchemy_golem:heal(self:combatTalentSpellDamage(t, 15, 350, (ammo.alchemist_power + self:combatSpellpower()) / 2))
-- resurrect the golem
else
elseif not self:hasEffect(self.EFF_GOLEM_MOUNT) then
if not ammo or ammo:getNumber() < 15 then
game.logPlayer(self, "You need to ready 15 alchemist gems in your quiver to heal your golem.")
return
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment