Naviehs
Member
Currently, if you add an AreaEffect to tamables, they will attack the owners secondary pets (if theres more than 1) if the owner is red/criminal
I know its from "ValidIndirectTarget" In Spellhelper.cs (Line 500) but Im not certain what should be changed so its only attacking harmful targets. Thank you!
I added this
if (toBC.Controlled && toBC.Summoned && fromBC.Controlled && fromBC.Summoned) //All involved are monsters- no damage // ADDED, FOR AOE EFFECTS
{
return false;
}
But then, enemie players pets aren't gonna damage each others with the AOEs, that would be half fixed
Top edit didn't work but this one seemed to work
if (from is BaseCreature && to is BaseCreature)
{
BaseCreature c = (BaseCreature)from;
BaseCreature d = (BaseCreature)to;
if (c.Controlled && d.Controlled)
return false;
}
But, enemie pets aren't going to damage each others
I know its from "ValidIndirectTarget" In Spellhelper.cs (Line 500) but Im not certain what should be changed so its only attacking harmful targets. Thank you!
Post automatically merged:
I added this
if (toBC.Controlled && toBC.Summoned && fromBC.Controlled && fromBC.Summoned) //All involved are monsters- no damage // ADDED, FOR AOE EFFECTS
{
return false;
}
But then, enemie players pets aren't gonna damage each others with the AOEs, that would be half fixed
Post automatically merged:
Top edit didn't work but this one seemed to work
if (from is BaseCreature && to is BaseCreature)
{
BaseCreature c = (BaseCreature)from;
BaseCreature d = (BaseCreature)to;
if (c.Controlled && d.Controlled)
return false;
}
But, enemie pets aren't going to damage each others
Last edited: