Mercurial > mm7
diff mm7_6.cpp @ 1285:62f4cdaa726b
shot from a bow and more
author | Ritor1 |
---|---|
date | Sat, 15 Jun 2013 23:58:19 +0600 |
parents | 1803172dffd9 |
children | c423f946dc99 |
line wrap: on
line diff
--- a/mm7_6.cpp Sat Jun 15 17:39:20 2013 +0600 +++ b/mm7_6.cpp Sat Jun 15 23:58:19 2013 +0600 @@ -2781,8 +2781,8 @@ if (pCastSpell->forced_spell_skill_level) uRequiredMana = 0; else - uRequiredMana = pSpellDatas[pCastSpell->spellnum].mana_per_skill[v731 - 1]; - sRecoveryTime = pSpellDatas[pCastSpell->spellnum].recovery_per_skill[v731 - 1]; + uRequiredMana = pSpellDatas[pCastSpell->spellnum - 1].mana_per_skill[v731 - 1]; + sRecoveryTime = pSpellDatas[pCastSpell->spellnum - 1].recovery_per_skill[v731 - 1]; if (LODWORD(v725) == PLAYER_SKILL_DARK && pParty->uCurrentHour == 0 && pParty->uCurrentMinute == 0 || LODWORD(v725) == PLAYER_SKILL_LIGHT && pParty->uCurrentHour == 12 && pParty->uCurrentMinute == 0)