Jump to content

  •  

Photo

Reduzir dano de Reflect

reflect

  • Please log in to reply
1 reply to this topic

#1 luis.seifert

luis.seifert

    Advanced Member

  • Members
  • PipPipPip
  • 51 posts
  • Github:Luis~

Posted 17 February 2015 - 07:23 PM

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, 17 February 2015 - 07:24 PM.

Supreme Asura:

    unitkill getcharid(3);


#2 Kurare

Kurare

    Newbie

  • Members
  • Pip
  • 8 posts
  • Github:2br

Posted 09 July 2015 - 12:21 AM

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






Also tagged with one or more of these keywords: reflect

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users


This topic has been visited by 22 user(s)