Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //@Source/Game/char_skill.cpp
- //1.) [RO] Cauta:
- // [EN] Search:
- if (IS_SET(m_pkSk->dwFlag, SKILL_FLAG_REMOVE_GOOD_AFFECT))
- //2.) [RO] Inlocuieste cu:
- // [EN] Replaces with:
- if (IS_SET(m_pkSk->dwFlag, SKILL_FLAG_REMOVE_GOOD_AFFECT))
- {
- int level_atacator = m_pkChr->GetLevel();
- int level_tinta = pkChrVictim->GetLevel();
- int diferenta_level = 10;
- if ((level_atacator-diferenta_level <= level_tinta))
- {
- int iAmount2 = (int) m_pkSk->kPointPoly2.Eval();
- int iDur2 = (int) m_pkSk->kDurationPoly2.Eval();
- iDur2 += m_pkChr->GetPoint(POINT_PARTY_BUFFER_BONUS);
- if (number(1, 100) <= iAmount2)
- {
- pkChrVictim->RemoveGoodAffect();
- pkChrVictim->AddAffect(m_pkSk->dwVnum, POINT_NONE, 0, AFF_PABEOP, iDur2, 0, true);
- }
- }
- }
- //[RO] Diferenta de level se aplicata doar atacatorilor mai mici decat tinta aleasa.
- Acest codat a fost creat de Martysama si edita de către mine.
- //[EN] The level difference applies only to smaller attackers than the victim chosen.
- This coded was created by Martysama and edited by me.
Add Comment
Please, Sign In to add comment