Use ShakeOnDeath instead of the hardcoded shaking for bridges

This commit is contained in:
abcdefg30
2018-05-03 17:44:43 +02:00
committed by reaperrr
parent b89e6211b2
commit 917fd2103f
5 changed files with 12 additions and 2 deletions

View File

@@ -378,7 +378,6 @@ namespace OpenRA.Mods.Common.Traits
// Use .FromPos since this actor is killed. Cannot use Target.FromActor
info.DemolishWeaponInfo.Impact(Target.FromPos(self.CenterPosition), saboteur, Enumerable.Empty<int>());
self.World.WorldActor.Trait<ScreenShaker>().AddEffect(15, self.CenterPosition, 6);
self.Kill(saboteur);
});