if(m_spellInfo->SpellGroupType && u_caster)
{
SM_FIValue(u_caster->SM_FDur,(int32*)&Dur,m_spellInfo->SpellGroupType);
SM_PIValue(u_caster->SM_PDur,(int32*)&Dur,m_spellInfo->SpellGroupType);
}
}
else
{
if(u_caster->getLevel()<11) Dur=0; //小于11級(jí)的就完全沒有虛弱時(shí)間
else if(u_caster ->getLevel()<=20)
Dur =(u_caster->getLevel()-10)*60*1000; //11級(jí)到20級(jí)中間的是(等級(jí)-10)分鐘
else Dur =10*60*1000; //大于20級(jí)的都是10分鐘
}
return Dur;
}
posted on 2007-08-27 14:54
聶文龍 閱讀(344)
評(píng)論(0) 編輯 收藏 引用 所屬分類:
ascent