Made projectile effects accept empty values to disable/negate image or sequence.
In addition to accepting null.
This commit is contained in:
@@ -57,7 +57,7 @@ namespace OpenRA.Mods.Common.Effects
|
||||
this.color = color;
|
||||
this.target = args.PassiveTarget;
|
||||
|
||||
if (info.HitAnim != null)
|
||||
if (!string.IsNullOrEmpty(info.HitAnim))
|
||||
this.hitanim = new Animation(args.SourceActor.World, info.HitAnim);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user