FIXED Chivalry pets casting close wounds on full health.

DewCono

Apprentice II
Supporter

Chiv pets are casting close wounds on full health when entering combat. Should really be something like consecrate weapon, enemy of one..
 

kalel83

Apprentice II
Supporter
Yea it was rather disappointing to watch my pet today on Miasma. Above 95% health the entire time and it only cast Chiv spells to heal or remove curse/poisons. Non stop too, like it was trying to prevent a cold or flu.

Not a single spell cast for battle at all.
 
Last edited:

kalel83

Apprentice II
Supporter
Put him on Balrons for roughly 20 kills.

He casts healing only really when he has full health or above 70%ish health. He will cast Cleanse by Fire/Remove Curse/Close Wounds a lot.
But when he looses 30% or more health he kicks into casting Dispel Evil and Holy Light almost non stop. He will focus on one or the other for 10 or more casts, then swap to the other one sometimes. Loves casting Holy Light with only one target near him.
Not always tho. Sometime he will open with Dispel Evil and not really try to heal himself at all. This is more rare, seemed to happen with the Paragon Balron mostly.
Enemy of One only cast once.
Concentrate Weapon only cast twice.
Divine Fury only cast Twice.
When lower on life he will occasionally throw a healing spell once. But if the pet is 20% health total or something he does not really heal at all, just keeps spamming Dispel Evil or Holy Light.
 
Last edited:

kalel83

Apprentice II
Supporter
Not trying to side track this, but what happens when he casts dispel evil? With undead around?
Just took him to Doom near the sorceress and Dispel Evil seems to do nothing on the Zombies. Not sure what else to test it with.
I guess you need evil summoned things, but those are so rare.

Good point tho. The pet casts the shit out of a spell with it does absolutely nothing. Not sure if that is more worthless then spamming heal when you are almost full health, but it is close.
 
Last edited:

Dan

Staff Member
Administrator
Game Master
Doesn't dispel evil only work on summons? Like when the Dark Father summons revenants?
 

kalel83

Apprentice II
Supporter
Doesn't dispel evil only work on summons? Like when the Dark Father summons revenants?
According to the spell description yea, only on summons. Which is why him casting it 60% of the time sucks so much. No check if there is summoned even near him.
 

The Silvertiger

Neophyte III
Supporter
I don't know how it works here, but on older iterations of RunUO/preServUO code, dispel evil makes rotting corpses/undead run away really quickly. I don't know if that's just on the undead summoned via unholy bones or all undead. I also don't know if it's OSI accurate... Might be a separate bug report if it's working incorrectly. gogogo kalel
 

Dan

Staff Member
Administrator
Game Master
No it should never do any of that, nor has it ever done that on ServUO.
 

kalel83

Apprentice II
Supporter
I don't know how it works here, but on older iterations of RunUO/preServUO code, dispel evil makes rotting corpses/undead run away really quickly. I don't know if that's just on the undead summoned via unholy bones or all undead. I also don't know if it's OSI accurate... Might be a separate bug report if it's working incorrectly. gogogo kalel
Untitled.png

If it is supposed to make evil non summoned things flee it either does not currently, or it is such a low chance to not really be relevant on a pet.

Either way, this is a useless spell imo and I would rather have my pet cast something else. Unless it detects if it has a proper summoned target at all or not. But if it is supposed to try to make anything flee I can see why it spams the shit of it. Would make me think the chance for it to work is too low, as it cast it hundreds of times on the Balron with no success.
 
Last edited:

The Silvertiger

Neophyte III
Supporter
Now my understanding is chiv spell powers work with your lvl of karma. So not sure if pets gain karma and that might explain stuff not running away when dispel evil is cast.
Post automatically merged:

I know no we don't always trust uo guide
I will farm negative karma on my pet and get back to you on this. It also only works on certain mobs.
 
OP
DewCono

DewCono

Apprentice II
Supporter
Dispel Evil seems to be behaving properly as of my tests. I streamed yesterday to Kalel83, and The Silvertiger using my Hiryu Wanda (115/120 Chivalry) to show that in a crowd of creatures such as Juka Warriors that it would cause a fair number of them to turn tail and flee.

Now as for what it should do:
1. It should behave as the paladin casting mass dispel against creatures summoned directly on it (revenant, SW swarm).
2. It attempts to cause ALL monsters in the area to flee. They flee for a pre-determined amount of time, or until damaged.

#2 works as intended, I'm unsure of #1 as I didn't test that.

This is the code pulled from DispelEvil.cs


Code:
                foreach (var m in AcquireIndirectTargets(Caster.Location, 8).OfType<Mobile>())
                {
                    BaseCreature bc = m as BaseCreature;

                    if (bc != null)
                    {
                        bool dispellable = bc.Summoned && !bc.IsAnimatedDead;

                        if (dispellable)
                        {
                            double dispelChance = (50.0 + ((100 * (chiv - bc.GetDispelDifficulty())) / (bc.DispelFocus * 2))) / 100;
                            dispelChance *= dispelSkill / 100.0;

                            if (dispelChance > Utility.RandomDouble())
                            {
                                Effects.SendLocationParticles(EffectItem.Create(m.Location, m.Map, EffectItem.DefaultDuration), 0x3728, 8, 20, 5042);
                                Effects.PlaySound(m, m.Map, 0x201);

                                m.Delete();
                                continue;
                            }
                        }

                        bool evil = !bc.Controlled && bc.Karma < 0;

                        if (evil)
                        {
                            // TODO: Is this right?
                            double fleeChance = (100 - Math.Sqrt(m.Fame / 2)) * chiv * dispelSkill;
                            fleeChance /= 1000000;

                            if (fleeChance > Utility.RandomDouble())
                            {
                                // guide says 2 seconds, it's longer
                                bc.BeginFlee(TimeSpan.FromSeconds(30.0));
                            }
                        }
                    }

You can see it has a flee attempt built in to "indirect targets".
 
Last edited:

The Silvertiger

Neophyte III
Supporter
Ok, so I got a chance to test dispel evil today. So I locked my karma and went hunting. I was unable to get controllers, blackthorn juggernauts, savages, and evil mages to flee either due to low health or it just not working. So for the savages they were surrounding the triton. I had negative karma. I recalled to Luna went and unlocked my karma at compassion shrie. I went back. Still nothing was fleeing. Finally a plague beast engaged. At -195 karma, on my character, the plague spawn was fleeing. Then I went back to the savages and they were fleeing. So pets must have there own karma. Will test later when I have more chiv on pet just to make sure it isn't a skill check fail.

As far as AI improvement with dispel evil, I suggest that pets only cast dispel evil if a murderer is on screen. I haven't seen my Triton casting cleanse by fire without being poisoned unless it bandaged first. It usually leads with remove curse, holy light, or dispel evil.
 
Last edited:

PLAY NOW

Heritage

Address
play.trueuo.com
Port
2593
Uptime
12 hours
Players Online
11
Houses
851
Vendors
297
Gold
5,018,704,592gp
Top Bottom