Skip to content

Commit

Permalink
Fix GivesExperienceModifier not working
Browse files Browse the repository at this point in the history
  • Loading branch information
MustaphaTR committed Aug 16, 2018
1 parent ac523f1 commit 47a7112
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OpenRA.Mods.Common/Traits/GivesExperience.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ void INotifyKilled.Killed(Actor self, AttackInfo e)
: valued != null ? valued.Cost : 0;

var experienceModifier = self.TraitsImplementing<IGivesExperienceModifier>().Select(x => x.GetGivesExperienceModifier());
Util.ApplyPercentageModifiers(exp, experienceModifier);
exp = Util.ApplyPercentageModifiers(exp, experienceModifier);

var killer = e.Attacker.TraitOrDefault<GainsExperience>();
if (killer != null)
Expand Down

0 comments on commit 47a7112

Please sign in to comment.