So I am trying to implement the final pet ability 'Rising Fury' when I came across this issue...
The 'AoE' damage doesn't effect the shore monster...
https://gyazo.com/f2a6f059cf30e0275b6a35f79f351f00
The ability works fine on Gods,
https://gyazo.com/36aad9bbb681e44cc524eed07f452c9e
When running the code below, only 1 (sometimes 2) monsters can detected on the shore,
Attempt #1
Code:
foreach (Entity i in host.Owner.EnemiesCollision.HitTest(host.X, host.Y, Range))
{
Console.WriteLine("entity found");
if (i is Enemy)
{
Console.WriteLine("enemy found");
Enemy dmgthis = i as Enemy;
dmgthis.Damage(host.GetPlayerOwner(), time, Power, false, new ConditionEffect { });
}
}
Attempt #2
Code:
var entities = host.GetNearestEntities(Range);
foreach (Entity e in entities)
{
if (e is Enemy)
{
Enemy dmgthis = e as Enemy;
dmgthis.Damage(host.GetPlayerOwner(), time, Power, false, new ConditionEffect { });
}
}
Attempt #3
Code:
host.Owner.Aoe(target, (float)Range, false, enemy =>
{
(enemy as Enemy).Damage(host.GetPlayerOwner(), time, Power, false, new ConditionEffect {});
});
I then checked whether the necromancer's skull and huntress' trap worked, and surprisingly they do not kill all scorpions on the shore!
However, the assassin's poison grenade does which I inspected and didn't see anything that's different.
I am really stuck here lol.