|
@@ -2566,7 +2566,7 @@ int EQ2Emu_lua_RemoveSpellBonus(lua_State* state) {
|
|
ZoneServer* zone = nullptr;
|
|
ZoneServer* zone = nullptr;
|
|
if (luaspell->caster != nullptr)
|
|
if (luaspell->caster != nullptr)
|
|
zone = luaspell->caster->GetZone();
|
|
zone = luaspell->caster->GetZone();
|
|
- if(!zone) {
|
|
|
|
|
|
+ if(!zone && spawn) {
|
|
zone = spawn->GetZone(); // workaround to try to establish a zone to find the targets and remove the spells
|
|
zone = spawn->GetZone(); // workaround to try to establish a zone to find the targets and remove the spells
|
|
}
|
|
}
|
|
Spawn* target = 0;
|
|
Spawn* target = 0;
|