Skip to content

Commit

Permalink
fix portal gems (#3207)
Browse files Browse the repository at this point in the history
  • Loading branch information
gmriggs authored Sep 4, 2020
1 parent 0c25ae2 commit 3e88ff7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Source/ACE.Server/WorldObjects/Gem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,12 @@ public void UseGem(Player player)
// should be 'You cast', instead of 'Item cast'
// omitting the item caster here, so player is also used for enchantment registry caster,
// which could prevent some scenarios with spamming enchantments from multiple gem sources to protect against dispels
player.TryCastSpell(spell, player, null, false);

// TODO: figure this out better
if (spell.MetaSpellType == SpellType.PortalSummon)
TryCastSpell(spell, player, this, false);
else
player.TryCastSpell(spell, player, null, false);
}

if (UseCreateContractId > 0)
Expand Down

0 comments on commit 3e88ff7

Please sign in to comment.