Lavae have the behavior of "AttackWall" in its brain,
AttackWall(self.inst),
but it actually cannot case damage to the wall in game.
I find that the attack state in SGlavae get the parameter of target, but the function in combat:DoAttack don't get the parameter of target.
TimeEvent(21*FRAMES, function(inst)
inst.SoundEmitter:PlaySound("dontstarve/creatures/together/lavae/attack")
inst.components.combat:DoAttack()
end),
Maybe it can be changed to this
onenter = function(inst, target)
inst.sg.statemem.target = target
end,
TimeEvent(21*FRAMES, function(inst)
inst.SoundEmitter:PlaySound("dontstarve/creatures/together/lavae/attack")
inst.components.combat:DoAttack(inst.sg.statemem.target)
end),
Steps to Reproduce
Use walls block the lavaes.
- 3
- 2
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 accountSign in
Already have an account? Sign in here.
Sign In Now