Jump to content

Werepigs do not attack Were-Woodie


JamesBucket
  • Closed

Hello, I'm not sure if this is intended, but werepigs do not attack were-woodie in any form (be it goose, beaver or moose). It was not stated in the feature of reworked woodie, so I am wondering if this is a bug. Below is the screen shot I captured.

Snapshot22.jpg


Steps to Reproduce
Turn into were-woodie and take a nice stroll around the pig town during full moon



User Feedback


47 minutes ago, JamesBucket said:

yup got that response on discord as well, but thanks!

No problem. It was because of this in pigman.lua:

local function WerepigKeepTargetFn(inst, target)
    return inst.components.combat:CanTarget(target)
           and not target:HasTag("werepig")
           and not target:HasTag("beaver") -- <- this line just changed from beaver to wereplayer
           and not (target.sg ~= nil and target.sg:HasStateTag("transform"))
end

 

Edited by lakhnish
  • Thanks 1

Share this comment


Link to comment
Share on other sites



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...