self damage possible

Change in lua spell damage to make self damage possible (allows /castspell to function correctly)
This commit is contained in:
Image 2020-03-07 17:27:59 -05:00
parent d06d3fd0e3
commit 3195a78e82

View file

@ -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__);