Ogres Immune to Frontal Melee Stuns
Ogres are immune to stuns from frontal melee damage, such as bash.
in .\zone\attack.cpp change: Code:
//check stun chances if bashing Code:
//check stun chances if bashing |
nice
Very nice. Hope to see this in game soon =)
-Mard |
Awesome. I just started playing around with an Ogre today and noticed this needed to be fixed. You saved me a lot of time. :)
One thing I did differently though is to make the Ogre check first. Six of one, half dozen of the other though. Code:
//check stun chances if bashing |
Quote:
|
Maybe I'm misunderstanding my own code, but I'm reading it as this:
Code:
if (skill_used == BASH && GetLevel() < 56) { Code:
} else if (this->GetBaseRace() == OGRE && this->IsClient() && !attacker->BehindMob(this, attacker->GetX(), attacker->GetY())) { The stun roll failed or the target is an Ogre. If the target is an ogre, and the attacker is not behind the ogre (we checked this already in the previous step, but checking it again), then log that the stun was resisted because it was a an attempt at a frontal melee stun on an ogre. Code:
} else { Maybe I'm missing something, but I've had the code live on my server for quite a while without any further complaints about Ogres getting stunned. Dax |
ah. Didnt realize that you duplicated the ogre logic on the end of the first contidional (line too long). So yours gets the same job done, but I think the readability is lower and it will do twice as much work in the ogre case.
|
FNW asked me to commit this fix for him. I'll add it in tonight or tomorrow.
Thank you for your contribution to the eqemu server code! |
Actually, KLS already committed this in build 1071, so never mind (/bonk FNW).
|
All times are GMT -4. The time now is 12:35 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.