shared.inl, line 846
PHP Code:
// Unholy Aura bonus
if ( iSkillLevel > 0.0 )
{
fNewSpeed = p_unholy[iSkillLevel-1];
if (ITEM_Has(id, ITEM_BOOTS) > ITEM_NONE && (fNewSpeed >= (1.0 + get_pcvar_float(CVAR_wc3_boots))))
{
ITEM_RemoveID(id, ITEM_BOOTS);
client_print(id, print_chat, "Unholy Aura's speed is greater than boots: removing.");
}
}
This will verify that Unholy Aura's speed boost is greater than what boots, give, and if so, remove boots.
shared
.inl, line 1096
PHP Code:
// User has levitation + sock, lolnope.
if ( fGravityLevel < 1.0 )
{
if (fGravityLevel <= 0.5)
{
client_print(id, print_chat, "Levitation's gravity is better than sock: removing.");
ITEM_RemoveID(id, ITEM_SOCK);
}
}
Levitation will remove boots if the skill's gravity reduction outdoes the sock's.
I expect you
are learning from this, friend.