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!
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 :p
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:

Active Shards

Donations

Total amount
$0.00
Goal
$1,000.00
Back