mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-01-27 09:23:12 +08:00
fix Spaz.curse() method
timer does not work, explodes only when touched
This commit is contained in:
parent
bd065dba2c
commit
2bb61ec297
@ -625,7 +625,7 @@ class Spaz(ba.Actor):
|
||||
else:
|
||||
# Note: curse-death-time takes milliseconds.
|
||||
tval = ba.time()
|
||||
assert isinstance(tval, int)
|
||||
assert isinstance(tval, (float, int))
|
||||
self.node.curse_death_time = int(1000.0 *
|
||||
(tval + self.curse_time))
|
||||
ba.timer(5.0, ba.WeakCall(self.curse_explode))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user