code cleanup 1

This commit is contained in:
nytmyr
2025-01-09 23:01:48 -06:00
parent 2fa32d1874
commit 40b676c320
8 changed files with 281 additions and 274 deletions
+4 -4
View File
@@ -2180,14 +2180,14 @@ bool Mob::DetermineSpellTargets(uint16 spell_id, Mob *&spell_target, Mob *&ae_ce
IsClient() && CastToClient()->TGB() &&
IsTGBCompatibleSpell(spell_id) &&
(slot != CastingSlot::Item || RuleB(Spells, AllowItemTGB))
) {
) {
if (
!target ||
target->IsCorpse() ||
(
target->IsNPC() &&
!(target->GetOwner() && target->GetOwner()->IsClient())
)
)
) {
spell_target = this;
}
@@ -7549,8 +7549,8 @@ bool Mob::IsImmuneToBotSpell(uint16 spell_id, Mob* caster)
{
int effect_index;
if (caster == nullptr) {
return(false);
if (!caster) {
return false;
}
//TODO: this function loops through the effect list for