Merge pull request #6453 from reaperrr/wda-followup

Follow-up to #6396 (WithDeathAnimation)
This commit is contained in:
Matthias Mailänder
2014-09-14 08:43:51 +02:00

View File

@@ -54,8 +54,8 @@ namespace OpenRA.Mods.RA
var wda = self.TraitOrDefault<WithDeathAnimation>();
if (wda != null)
{
var palette = wda.Info.DeathSequencePalette;
if (wda.Info.DeathPaletteIsPlayerPalette)
var palette = wda.Info.CrushedSequencePalette;
if (wda.Info.CrushedPaletteIsPlayerPalette)
palette += self.Owner.InternalName;
wda.SpawnDeathAnimation(self, wda.Info.CrushedSequence, palette);