mirror of
https://github.com/EQEmu/Server.git
synced 2026-04-15 17:02:26 +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:
|
case SE_AddFaction:
|
||||||
{
|
{
|
||||||
#ifdef SPELL_EFFECT_SPAM
|
if (caster && !IsPet() && GetPrimaryFaction() > 0) {
|
||||||
snprintf(effect_desc, _EDLEN, "Faction Mod: %+i", effect_value);
|
|
||||||
#endif
|
|
||||||
// EverHood
|
|
||||||
if(caster && GetPrimaryFaction()>0) {
|
|
||||||
caster->AddFactionBonus(GetPrimaryFaction(),effect_value);
|
caster->AddFactionBonus(GetPrimaryFaction(),effect_value);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user