mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-27 15:11:36 -04:00
Fix sucess chance
This commit is contained in:
parent
799842b5da
commit
c85e6a5f91
@ -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…
x
Reference in New Issue
Block a user