Jump to content

Nurse Spider heals dead and ghost spiders


Tykvesh
  • Fixed

1330272599_GIF29-Jun-2120-16-08.gif.a4af8781a8139fa96433b127574241ee.gif

Quote

local function DoHeal(inst)
    local scale = 1.35
    SpawnHealFx(inst, "spider_heal_ground_fx", scale)
    SpawnHealFx(inst, "spider_heal_fx", scale)
    
    local other_spiders = GetOtherSpiders(inst, TUNING.SPIDER_HEALING_RADIUS, {"spider", "spiderwhisperer", "spiderqueen"})
    for i, spider in ipairs(other_spiders) do
        if not spider.components.health:IsDead() and not spider:HasTag("playerghost") then
            local heal_amount = spider:HasTag("spiderwhisperer") and TUNING.HEALING_MEDSMALL or TUNING.SPIDER_HEALING_AMOUNT
            spider.components.health:DoDelta(heal_amount, false, inst.prefab)
            SpawnHealFx(spider, "spider_heal_target_fx")
        end
    end
    
    inst.healtime = GetTime()
end


Steps to Reproduce
  • Be close to Nurse Spiders in combat as ghost
  • Have a spider killed shortly before a nurse's heal
  • Like 1



User Feedback


A developer has marked this issue as fixed. This means that the issue has been addressed in the current development build and will likely be in the next update.


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
  • Create New...