mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 01:11:29 +00:00
[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:
parent
3c894cb533
commit
b3cd4e63f1
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user