mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-02-07 16:13:23 +08:00
parent
1263dd96eb
commit
406fc2770d
@ -1005,11 +1005,11 @@ class Bomb(ba.Actor):
|
|||||||
ba.playsound(factory.activate_sound, 0.5, position=self.node.position)
|
ba.playsound(factory.activate_sound, 0.5, position=self.node.position)
|
||||||
|
|
||||||
def _handle_hit(self, msg: ba.HitMessage) -> None:
|
def _handle_hit(self, msg: ba.HitMessage) -> None:
|
||||||
ispunch = (msg.srcnode and msg.srcnode.getnodetype() == 'spaz')
|
ispunched = (msg.srcnode and msg.srcnode.getnodetype() == 'spaz')
|
||||||
|
|
||||||
# Normal bombs are triggered by non-punch impacts;
|
# Normal bombs are triggered by non-punch impacts;
|
||||||
# impact-bombs by all impacts.
|
# impact-bombs by all impacts.
|
||||||
if (not self._exploded and not ispunch
|
if not ispunched and (not self._exploded
|
||||||
or self.bomb_type in ['impact', 'land_mine']):
|
or self.bomb_type in ['impact', 'land_mine']):
|
||||||
# Also lets change the owner of the bomb to whoever is setting
|
# Also lets change the owner of the bomb to whoever is setting
|
||||||
# us off. (this way points for big chain reactions go to the
|
# us off. (this way points for big chain reactions go to the
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user