Explorar o código

Better logging for 'proc' function not triggering right so we know which spell

Image %!s(int64=4) %!d(string=hai) anos
pai
achega
49a0072218
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      EQ2/source/WorldServer/Combat.cpp

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

@@ -1348,7 +1348,7 @@ bool Entity::CastProc(Proc* proc, int8 type, Spawn* target) {
 	}
 
 	if (lua_pcall(state, num_args, 0, 0) != 0) {
-		LogWrite(COMBAT__ERROR, 0, "Proc", "Unable to call the proc function");
+		LogWrite(COMBAT__ERROR, 0, "Proc", "Unable to call the proc function for spell %i tier %i", proc->spell->spell->GetSpellID(), proc->spell->spell->GetSpellTier());
 		lua_pop(state, 1);
 		return false;
 	}