mirror of
https://github.com/EQEmu/Server.git
synced 2026-01-07 14:33:52 +00:00
[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:
parent
b027edd21e
commit
5a663910a5
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user