pet rescued it says, opponent blind, how is this possible?
cast 'blindness' yaesil won't care if the pet rescued.
Your pet rescued you from his pet, not from him.
[game output redacted]
OK. It's fine if you think something is wrong. I'm telling you there isn't. Nothing changed with rescue. All it does is iterate through the room, and match the first "ch->fighting = target" and then does the rescue. It's been like this for ages. Look at the old rescue code if you have it available.
What's your methodology?
Did you walk into a room with a bunch of mobs and spam rescue?
When you rescued, eventually it re-targeted you? When it did, did you re-rescue to see if it did the same one first again?
What about changing targets mid battle, before a rescue? Did it rescue against the new one first?
Changing targets after you were retargeted and rescuing again?
What about mobs that have respawned, so that they're effectively loaded in after you did?
Did you try releasing your charmie and re-summoning it (which is similar to the mobs respawning).
Did you rescue after another mob entered after battle began?
Did you rescue after another mob entered, and rescued against that one, and when the first retargeted, rescue again?
Do you have logs?
Krawtor wrote:
fch assignment looks weird. and is this a typo I guess, ecaster instead of caster?if ecaster.fighting exists and ecaster.fighting == target:
You do realize this is pseudo-code which purposefully modifies information to appear easier to read.
There is nothing wrong with Rescue. It has not been changed, at any point.
It seems to me now looking at the code its all about how the loop is written to select fch. But yeah not a bug, so thanks for everyones time. Would be cool to see it rewritten to be a pure random selection across all available enemies fighting the target, but I recognize how low on the priority list that would be.
Additionally, rescue is exactly what it says it is: it rescues you from combatants attacking you. It doesn't rescue you from who you're targeting. It grabs a list of characters in the room, and selects the first one that is fighting you.
You're reading like half of what I tell you. It is not written to just rescue you from the thing you're targeting. It rescues you from a list of characters/mobs that are fighting you in the room. You can do this 30 times, I don't care; the fact remains that it works exactly how I said it does.
You seem to be getting very defensive for some reason, as if I'm attacking code you wrote or something. This is just me trying to figure out situations in a game that do not react the way the code says they should in my very novice understanding
Please help me understand where in the code it says it shouldn't act the way I said it does?
And why would I be getting defensive? I'm direct, and to the point, and if you don't like that, I'm sorry. I haven't changed and I've been this way for years. I don't beat around the bush when explaining how things work. If there's a bug, I'll find the bug.
. I'm in IT, I'm curious by nature, and I hate not understanding why something isn't doing what I have a somewhat educated guess or perspective on the way it should. When I rescue and it rescues me from the mob I'm fighting, but then I hit a different creature, and it rescues me from that one instead, and then I hit a third creature, and it rescues me from that one instead....given what you're saying and the code, it seems to imply that switching your target makes the room update the order the mobs are read in?
Again, you don't understand the code. That's fine. I don't expect you to. But now I'm curious how YOU'RE reading it, so I can understand why you're still on this hill and bent on dying on it.
When you walk into a room, the first mob (mind you, there's a list of mobs in each room, if they're there) that's aggressive will attack you. This first mob is also the first target that rescue finds by iterating through who is in the room. You added yourself, and your own rescue mob into the room by walking in. The rescue code skips them, and hits the first valid target (from first, to last) that is fighting you. In this case (and basically every single case) the mob that first attacks you is going to be the one you are rescued from, and also be the one you are targeting.
A better test, if you want to try it, would be to go into a room full of mobs, aim at the second, or third one, and then have your pet rescue you. Your pet will still rescue you from the first mob which attacked you, on top of the list, and the second or third one you aimed at will still be fighting you (not your pet).
Anyways. You do you, and believe what you want. I don't have anything against you, or anyone else, but I spent time confirming the behavior before replying here, because I was genuinely curious what happened when you first brought it up. If you think I somehow am being defensive, you can continue thinking that. No skin off my back.
