Slay Undead Fix
{attack.cpp}
~2631, right after the definition of Mob::TryCriticalHit, add: Code:
bool slayUndeadCrit = false;Code:
if(defender && defender->GetBodyType() == BT_Undead || defender->GetBodyType() == BT_SummonedUndead || defender->GetBodyType() == BT_Vampire){Code:
slayUndeadCrit = true;Code:
if(critChance > 0){Code:
if (slayUndeadCrit) |
Just to clarify, by "And add the following immediately after the switch close bracket:" I assume you mean in between the two brackets you have in the snippet? The first closing bracket is the switch bracket, the second belongs to the if statement above it.
|
For clarity's sake, the end result should look like this:
Code:
if(defender && defender->GetBodyType() == BT_Undead || defender->GetBodyType() == BT_SummonedUndead || defender->GetBodyType() == BT_Vampire){ |
Good, we're on the same page :)
|
| All times are GMT -4. The time now is 01:55 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.