fix meditation

Where bugs go to lie down and rest

Moderator: Moderator

Post Reply
Message
Author
Shoob
Reaper
Posts: 1535
Joined: Mon Jan 22, 2007 6:31 pm
Location: East of the sun, west of the moon

fix meditation

#1 Post by Shoob »

Add this to the onTakeHit function in actor.lua

Code: Select all

	-- Un-meditate
	if self:hasEffect(self.EFF_MEDITATION) then
		self:removeEffect(self.EFF_MEDITATION)
	end
right now meditation does not stop if you are attacked, the above fixes it.
Oliphant am I, and I never lie.

Post Reply