mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-03-29 19:06:41 +00:00
Fix sucess chance
This commit is contained in:
parent
799842b5da
commit
c85e6a5f91
1 changed files with 1 additions and 1 deletions
|
@ -816,7 +816,7 @@ void LocalPlayer::prepareAttack(Attack::TYPE type, bool state)
|
||||||
if (dstate == MWMechanics::DrawState_Spell)
|
if (dstate == MWMechanics::DrawState_Spell)
|
||||||
{
|
{
|
||||||
const string &spell = MWBase::Environment::get().getWindowManager()->getSelectedSpell();
|
const string &spell = MWBase::Environment::get().getWindowManager()->getSelectedSpell();
|
||||||
GetAttack()->success = Misc::Rng::roll0to99() >=MWMechanics::getSpellSuccessChance(spell, GetPlayerPtr());
|
GetAttack()->success = Misc::Rng::roll0to99() < MWMechanics::getSpellSuccessChance(spell, GetPlayerPtr());
|
||||||
state = true;
|
state = true;
|
||||||
GetAttack()->refid = spell;
|
GetAttack()->refid = spell;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue