[Pets] Disallow effect of alliance line when cast on pets. (#3650)

* [Pets] Disallow effect of alliance line when cast on pets.

* Update spell_effects.cpp

---------

Co-authored-by: Alex King <89047260+Kinglykrab@users.noreply.github.com>
This commit is contained in:
Paul Coene 2023-10-23 23:40:24 -04:00 committed by GitHub
parent b027edd21e
commit 5a663910a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -706,11 +706,7 @@ bool Mob::SpellEffect(Mob* caster, uint16 spell_id, float partial, int level_ove
case SE_AddFaction:
{
#ifdef SPELL_EFFECT_SPAM
snprintf(effect_desc, _EDLEN, "Faction Mod: %+i", effect_value);
#endif
// EverHood
if(caster && GetPrimaryFaction()>0) {
if (caster && !IsPet() && GetPrimaryFaction() > 0) {
caster->AddFactionBonus(GetPrimaryFaction(),effect_value);
}
break;