From 3e88ff7df17a7b183c8a614a71b45387cdd1489e Mon Sep 17 00:00:00 2001 From: gmriggs <gmriggs@gmail.com> Date: Fri, 4 Sep 2020 04:10:19 -0400 Subject: [PATCH] fix portal gems (#3207) --- Source/ACE.Server/WorldObjects/Gem.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Source/ACE.Server/WorldObjects/Gem.cs b/Source/ACE.Server/WorldObjects/Gem.cs index ae47bd01df..4fd956cc90 100644 --- a/Source/ACE.Server/WorldObjects/Gem.cs +++ b/Source/ACE.Server/WorldObjects/Gem.cs @@ -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)