Remove the extra erroneous message (DoT landing message) at mob death if mob dies of DoT. (#1138)

* Removed the erroneous message of a DoT "landing" when a mob dies from that DoT

* Set spell=-1 on Death struct for NPCs.  It was causing extra DoT msg.

* Remove whitespace

Co-authored-by: Noudess <noudess@gmail.com>
This commit is contained in:
Paul Coene 2020-12-21 18:07:15 -05:00 committed by GitHub
parent a1cc68d214
commit 1eb5e4a0c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2247,7 +2247,7 @@ bool NPC::Death(Mob* killer_mob, int32 damage, uint16 spell, EQ::skills::SkillTy
d->spawn_id = GetID();
d->killer_id = killer_mob ? killer_mob->GetID() : 0;
d->bindzoneid = 0;
d->spell_id = spell == SPELL_UNKNOWN ? 0xffffffff : spell;
d->spell_id = 0xffffffff; // Sending spell was causing extra DoT land msg
d->attack_skill = SkillDamageTypes[attack_skill];
d->damage = damage;
app->priority = 6;