Fix trap removal

This commit is contained in:
Michael Cook (mackal)
2017-07-24 22:58:58 -04:00
parent 6bf2cf8cb8
commit f6f3060c9d
2 changed files with 12 additions and 1 deletions
+11 -1
View File
@@ -11805,7 +11805,17 @@ void Client::Handle_OP_RemoveTrap(const EQApplicationPacket *app)
}
auto id = app->ReadUInt32(0);
RemoveAura(id);
bool good = false;
for (int i = 0; i < trap_mgr.count; ++i) {
if (trap_mgr.auras[i].spawn_id == id) {
good = true;
break;
}
}
if (good)
RemoveAura(id);
else
Message_StringID(MT_SpellFailure, NOT_YOUR_TRAP); // pretty sure this was red
}
void Client::Handle_OP_Report(const EQApplicationPacket *app)