Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //@usr/src/mainline_released/game/src/char_affect.cpp
- //1.) Search for:
- if (lDuration == 0)
- {
- sys_err("Character::AddAffect lDuration == 0 type %d", lDuration, dwType);
- lDuration = 1;
- }
- //2.) Add after:
- #if defined(ENABLE_IGNORE_LOWER_BUFFS)
- switch (dwType)
- {
- case SKILL_HOSIN:
- case SKILL_REFLECT:
- case SKILL_GICHEON:
- case SKILL_JEONGEOP:
- case SKILL_KWAESOK:
- case SKILL_JEUNGRYEOK:
- #if defined(ENABLE_WOLFMAN_CHARACTER)
- case SKILL_CHEONGRANG:
- #endif
- {
- const CAffect * pkAffect = FindAffect(dwType);
- if (!pkAffect)
- break;
- if (lApplyValue < pkAffect->lApplyValue)
- {
- ChatPacket(CHAT_TYPE_INFO, "<AddAffect> has blocked receiving skill (%s) because power is (%ld%%) more small then current one (%ld%%).", CSkillManager::instance().Get(dwType)->szName, lApplyValue, pkAffect->lApplyValue);
- return false;
- }
- }
- break;
- default:
- break;
- }
- #endif
- //@usr/src/mainline_released/common/service.h
- #define ENABLE_IGNORE_LOWER_BUFFS
Add Comment
Please, Sign In to add comment