Skip to content
This repository has been archived by the owner on Sep 3, 2022. It is now read-only.

Commit

Permalink
Resolve #1426 -- Fix getting xp from the wrong team (#1424)
Browse files Browse the repository at this point in the history
Fix getting xp from allied minions/champions instead of enemies
  • Loading branch information
T1ti authored Apr 22, 2022
1 parent 2b967a8 commit 14672c1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,7 @@ public virtual void Die(IDeathData data)
{
if (!(obj is IMonster))
{
var champs = _game.ObjectManager.GetChampionsInRangeFromTeam(Position, _game.Map.MapScript.MapScriptMetadata.AIVars.EXPRadius, Team, true);
var champs = _game.ObjectManager.GetChampionsInRangeFromTeam(Position, _game.Map.MapScript.MapScriptMetadata.AIVars.EXPRadius, CustomConvert.GetEnemyTeam(Team), true);
if (champs.Count > 0)
{
var expPerChamp = obj.Stats.ExpGivenOnDeath.Total / champs.Count;
Expand Down

0 comments on commit 14672c1

Please sign in to comment.