浏览代码

self damage possible

Change in lua spell damage to make self damage possible (allows /castspell to function correctly)
Image 4 年之前
父节点
当前提交
3195a78e82
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      EQ2/source/WorldServer/LuaFunctions.cpp

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

@@ -1199,7 +1199,7 @@ int EQ2Emu_lua_SpellDamage(lua_State* state){
 		if (luaspell->initial_target == target_id) {
 			int xxx = 0;
 		}
-		if (luaspell->targets.size() > 0 && (luaspell->initial_target != target_id)) {
+		if (luaspell->targets.size() > 0) {
 			ZoneServer* zone = luaspell->caster->GetZone();
 			Spawn* target = 0;
 			luaspell->MSpellTargets.readlock(__FUNCTION__, __LINE__);