Browse Source

make sure copied spell doesn't call customspell

image 3 years ago
parent
commit
0f972e7670
1 changed files with 1 additions and 1 deletions
  1. 1 1
      EQ2/source/WorldServer/SpellProcess.cpp

+ 1 - 1
EQ2/source/WorldServer/SpellProcess.cpp

@@ -869,7 +869,7 @@ void SpellProcess::ProcessSpell(ZoneServer* zone, Spell* spell, Entity* caster,
 			//version = client->GetVersion();
 		}
 
-		if (!customSpell)
+		if (!customSpell && !lua_spell->spell->IsCopiedSpell())
 		{
 			lua_getglobal(lua_spell->state, "customspell");
 			if (lua_isfunction(lua_spell->state, lua_gettop(lua_spell->state))) {