Bläddra i källkod

make sure copied spell doesn't call customspell

image 3 år sedan
förälder
incheckning
0f972e7670
1 ändrade filer med 1 tillägg och 1 borttagningar
  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))) {