Skip to content

Commit

Permalink
Don't tick MobSpawner spawnReplaceTicks when trait is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
MustaphaTR committed Feb 16, 2018
1 parent 2010e52 commit 21bf914
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OpenRA.Mods.Gen/Traits/MobSpawnerMaster.cs
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ void INotifyAttack.Attacking(Actor self, Target target, Armament a, Barrel barre

public void Tick(Actor self)
{
if (spawnReplaceTicks > 0)
if (spawnReplaceTicks > 0 && !IsTraitDisabled)
{
spawnReplaceTicks--;

Expand Down

0 comments on commit 21bf914

Please sign in to comment.