X-Git-Url: https://git.yukkurigames.com/?p=python-bulletml.git;a=blobdiff_plain;f=bulletml%2Fparser.py;h=8bc23c0be3334f3471b046a5ef13512f6dda380b;hp=aee4f90024b034de12ee656895b10fbb7aef6aa6;hb=67aa3f0b15d5f8122a8f99f5903ec2e2029937c4;hpb=175db2e60dd44cb95cd5e162ec134488439df26d diff --git a/bulletml/parser.py b/bulletml/parser.py index aee4f90..8bc23c0 100644 --- a/bulletml/parser.py +++ b/bulletml/parser.py @@ -861,10 +861,13 @@ class FireDef(object): if appearance is None: appearance = owner.appearance + Action = action.__class__ + actions = [Action(None, action, params, rank) + for action, params in actions] bullet = owner.__class__( x=x, y=y, direction=direction, speed=speed, target=owner.target, actions=actions, rank=rank, - appearance=appearance, tags=tags, Action=action.__class__) + appearance=appearance, tags=tags) created.append(bullet) def __repr__(self):