UID331209
帖子
精華
主題
積分124
現金
積極性
威望
違規
熱心
推廣次數
閱讀權限5
註冊時間2016-1-8
在線時間 小時
最後登錄1970-1-1
TA的每日心情 | 慵懶 2016-4-26 08:55 PM |
---|
簽到天數: 40 天 連續簽到: 1 天 [LV.5]常住居民I
|
本帖最後由 matt070516 於 2016-1-19 11:32 PM 編輯
如題,看源碼看到眼都花了,R前2轉服想解除死亡引導者可以吸血的狀態,我知道R版可以在狂怒的狀態下吸血,我去看R版的源碼在這邊Flag他是用Flag2,看說明也很像就是可以解除,可是我改了之後進遊戲開狂怒變成不會滿血,不知道是否有前輩知道是要修改哪邊,感恩!- //Heals a character. If flag&1 this is forced healing (otherwise stuff like Berserk can block it)
- //If flag&2 when the player is healed, show the HP/SP heal effect.
- int status_heal(struct block_list *bl,int hp,int sp, int flag)
- {
- struct status_data *status;
- struct status_change *sc;
- status = status_get_status_data(bl);
- if (status == &dummy_status || !status->hp)
- return 0;
- sc = status_get_sc(bl);
- if (sc && !sc->count)
- sc = NULL;
- if (hp < 0) {
- if (hp == INT_MIN) hp++; //-INT_MIN == INT_MIN in some architectures!
- status_damage(NULL, bl, -hp, 0, 0, 1);
- hp = 0;
- }
- if(hp) {
- if (flag&1) && sc && sc->data[SC_BERSERK])
- hp = 0;
- if((unsigned int)hp > status->max_hp - status->hp)
- hp = status->max_hp - status->hp;
- }
複製代碼 |
評分
-
查看全部評分
|