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

Resolve #1426 -- Fix getting xp from the wrong team #1424

Merged
merged 2 commits into from
Apr 22, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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