Jump to content
  • 0
Sign in to follow this  
luis.seifert

Reduzir dano de Reflect

Question

Olá comunidade do Hercules!

Gostaria de reduzir o dano máximo refletido pelos paladinos e pelos stalkers, eu uso hercules de julho de 2014.

Já alterei em battle.c para refletir no máximo o HP total do stalker, agora queria diminuir o reflect dos paladinos também.

O que eu alterei:
 

 

	if(wd.damage && tsc && tsc->data[SC_SWORDREJECT] &&	(src->type!=BL_PC || (			((TBL_PC *)src)->weapontype1 == W_DAGGER ||			((TBL_PC *)src)->weapontype1 == W_1HSWORD ||			((TBL_PC *)src)->status.weapon == W_2HSWORD		)) &&		rnd()%100 < tsc->data[SC_SWORDREJECT]->val2		) {		ATK_RATER(50);		wd.damage = min(status_get_max_hp(target),wd.damage);		status_fix_damage(target,src,wd.damage,clif->damage(target,src,0,0,wd.damage,0,0,0));		clif->skill_nodamage(target,target,ST_REJECTSWORD,tsc->data[SC_SWORDREJECT]->val1,1);		if( --(tsc->data[SC_SWORDREJECT]->val3) <= 0 )			status_change_end(target, SC_SWORDREJECT, INVALID_TIMER);	} 

 

Alguém sabe aonde fica o reflect do paladino para eu poder alterar?


Obrigado :)

Edited by luis.seifert

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Fica na função battle_reflect_damage

    NORMALIZE_RDAMAGE(damage * sc->data[SC_REFLECTSHIELD]->val2 / 100);    rdamage = min(status_get_max_hp(target),damage);//colocar aqui#ifndef RENEWAL	rdelay = clif->delay_damage(tick+delay,src, src, status_get_amotion(src), status_get_dmotion(src), rdamage, 1, 4);#else	rdelay = clif->skill_damage(src, src, tick, delay, status_get_dmotion(src), rdamage, 1, CR_REFLECTSHIELD, 1, 4);#endif

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.