Browse Source

fix modify max power and health from duplicating on a mob when the base mob values are extremely low

Emagi 6 months ago
parent
commit
d1af2ec649
1 changed files with 0 additions and 2 deletions
  1. 0 2
      EQ2/source/WorldServer/LuaFunctions.cpp

+ 0 - 2
EQ2/source/WorldServer/LuaFunctions.cpp

@@ -2094,7 +2094,6 @@ int EQ2Emu_lua_ModifyMaxPower(lua_State* state) {
 	sint32 value = lua_interface->GetSInt32Value(state, 2);
 	lua_interface->ResetFunctionStack(state);
 	if (spawn && value != 0) {
-		spawn->SetPower(spawn->GetPower() + value);
 		if (value > spawn->GetTotalHPBase())
 			spawn->SetTotalPower(spawn->GetTotalPower() + value);
 	}
@@ -2107,7 +2106,6 @@ int EQ2Emu_lua_ModifyMaxHP(lua_State* state) {
 	sint32 value = lua_interface->GetSInt32Value(state, 2);
 	lua_interface->ResetFunctionStack(state);
 	if (spawn && value != 0) {
-		spawn->SetHP(spawn->GetHP() + value);
 		if (value > spawn->GetTotalHPBase())
 			spawn->SetTotalHP(spawn->GetTotalHP() + value);
 	}