[Bug Fix] Drop Invisibility when hit by traps (#3785)

# Notes
- Resolves https://github.com/EQEmu/Server/issues/663.

# Video
[Drop Invisibility Trap Test](https://github.com/EQEmu/Server/assets/89047260/d6e96704-ee6d-4b16-bd52-4122e3b37577)
This commit is contained in:
Alex King 2023-12-18 16:37:53 -05:00 committed by GitHub
parent 3c894cb533
commit b3cd4e63f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6284,6 +6284,10 @@ void Client::Handle_OP_EnvDamage(const EQApplicationPacket *app)
);
parse->EventPlayer(EVENT_ENVIRONMENTAL_DAMAGE, this, export_string, 0);
}
if (ed->dmgtype == EQ::constants::EnvironmentalDamage::Trap) {
BreakInvisibleSpells();
}
}
if (GetHP() <= 0) {