mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-11 19:32:24 +00:00
Merge branch 'master' of https://github.com/EQEmu/Server
This commit is contained in:
commit
62197d7d33
@ -93,6 +93,8 @@ ClientListEntry::~ClientListEntry() {
|
|||||||
Camp(); // updates zoneserver's numplayers
|
Camp(); // updates zoneserver's numplayers
|
||||||
client_list.RemoveCLEReferances(this);
|
client_list.RemoveCLEReferances(this);
|
||||||
}
|
}
|
||||||
|
for (auto &elem : tell_queue)
|
||||||
|
safe_delete_array(elem);
|
||||||
tell_queue.clear();
|
tell_queue.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -234,6 +236,8 @@ void ClientListEntry::ClearVars(bool iAll) {
|
|||||||
pLFG = 0;
|
pLFG = 0;
|
||||||
gm = 0;
|
gm = 0;
|
||||||
pClientVersion = 0;
|
pClientVersion = 0;
|
||||||
|
for (auto &elem : tell_queue)
|
||||||
|
safe_delete_array(elem);
|
||||||
tell_queue.clear();
|
tell_queue.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -310,6 +314,7 @@ void ClientListEntry::ProcessTellQueue()
|
|||||||
pack->Deflate();
|
pack->Deflate();
|
||||||
Server()->SendPacket(pack);
|
Server()->SendPacket(pack);
|
||||||
safe_delete(pack);
|
safe_delete(pack);
|
||||||
|
safe_delete_array(*it);
|
||||||
it = tell_queue.erase(it);
|
it = tell_queue.erase(it);
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
|||||||
@ -1286,9 +1286,7 @@ bool Mob::PassCharismaCheck(Mob* caster, uint16 spell_id) {
|
|||||||
{
|
{
|
||||||
// Assume this is a harmony/pacify spell
|
// Assume this is a harmony/pacify spell
|
||||||
// If 'Lull' spell resists, do a second resist check with a charisma modifier AND regular resist checks. If resists agian you gain aggro.
|
// If 'Lull' spell resists, do a second resist check with a charisma modifier AND regular resist checks. If resists agian you gain aggro.
|
||||||
Shout("DO CHARISM CHECK ON FAIL");
|
|
||||||
resist_check = ResistSpell(spells[spell_id].resisttype, spell_id, caster, false,0,true);
|
resist_check = ResistSpell(spells[spell_id].resisttype, spell_id, caster, false,0,true);
|
||||||
|
|
||||||
if (resist_check == 100)
|
if (resist_check == 100)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user