Field spells damage

Piotr

Well-Known Member
Oct 1, 2016
64
3
29
Hi,

As I saw in one of the postings here, field spells and also explosive potions only harm those that are red, grey or orange to the caster.
Can you please tell me how to modify it so everyone (even the caster) can be harmed by them?
 

Piotr

Well-Known Member
Oct 1, 2016
64
3
29
Got it working for the explosive potions, which are mostly what I was interested in.

In baseexplosionpotion.cs:

foreach (object o in eable)
{
if (o is Mobile && ((Mobile)o).AccessLevel <= from.AccessLevel)
{
toExplode.Add(o);
++toDamage;
}
else if (o is BaseExplosionPotion && o != this)
{
toExplode.Add(o);
}
}
 

Piotr

Well-Known Member
Oct 1, 2016
64
3
29
Doesn't appear to be.
You cannot hurt anyone who isn't red, orange or grey to your character with AoE spells and explosive potions fall into that category.
The feature was added some time ago, I've read it right here on this forum.