以下為修正方式
開啟檔案wog/class/wog_fight_select.php
尋找
- 代碼: 選擇全部
$sql="select p_name as m_name,p_at as m_at,p_df as m_df,p_mat as m_mat
,p_mdf as m_mdf,p_agl as m_agl,p_lv as m_lv,p_s as m_s,p_sat_name as m_sat_name
,p_hpmax as m_hp,p_hpmax as m_hpmax,p_pk_money,p_money,i_img as m_img
from wog_player where p_name='".trim($_POST["towho"])."' and p_pk_s=1 and (p_lv+10 >= $p[p_lv] and p_lv-10 <= $p[p_lv]) ";
覆蓋為
- 代碼: 選擇全部
$sql="select p_name as m_name,p_at as m_at,p_df as m_df,p_mat as m_mat
,p_mdf as m_mdf,p_agl as m_agl,p_lv as m_lv,p_s as m_s,p_sat_name as m_sat_name
,p_hp as m_hp,p_hpmax as m_hpmax,p_pk_money,p_money,i_img as m_img
from wog_player where p_name='".trim($_POST["towho"])."' and p_pk_s=1 and (p_lv+10 >= $p[p_lv] and p_lv-10 <= $p[p_lv]) ";
尋找
- 代碼: 選擇全部
if($m[p_money]<$m[p_pk_money])
{
$DB_site->query("update wog_player set p_pk_s=0 where p_name='".trim($_POST["towho"])."'");
alertWindowMsg($lang['wog_fight_cant_pk2']);
}
後面,加上
- 代碼: 選擇全部
if($m[m_hp]<=0)
{
alertWindowMsg('對方已經累垮了。');
}
完畢。