mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 01:11:29 +00:00
fixes
This commit is contained in:
parent
5344679c7c
commit
49df0a5d33
@ -1704,7 +1704,7 @@ void SharedDatabase::LoadSpells(void *data, int max_spells) {
|
|||||||
sp[tempid].ResistDiff=atoi(row[147]);
|
sp[tempid].ResistDiff=atoi(row[147]);
|
||||||
sp[tempid].dot_stacking_exempt=atoi(row[148]);
|
sp[tempid].dot_stacking_exempt=atoi(row[148]);
|
||||||
sp[tempid].RecourseLink = atoi(row[150]);
|
sp[tempid].RecourseLink = atoi(row[150]);
|
||||||
sp[tempid].no_partial_resist = atoi(row[161]) != 0;
|
sp[tempid].no_partial_resist = atoi(row[151]) != 0;
|
||||||
|
|
||||||
sp[tempid].short_buff_box = atoi(row[154]);
|
sp[tempid].short_buff_box = atoi(row[154]);
|
||||||
sp[tempid].descnum = atoi(row[155]);
|
sp[tempid].descnum = atoi(row[155]);
|
||||||
|
|||||||
@ -4344,7 +4344,7 @@ bool Mob::TryReflectSpell(uint32 spell_id)
|
|||||||
|
|
||||||
int chance = itembonuses.reflect_chance + spellbonuses.reflect_chance + aabonuses.reflect_chance;
|
int chance = itembonuses.reflect_chance + spellbonuses.reflect_chance + aabonuses.reflect_chance;
|
||||||
|
|
||||||
if(MakeRandomInt(0, 99) < (GetTarget()->itembonuses.reflect_chance + GetTarget()->spellbonuses.reflect_chance))
|
if(chance && MakeRandomInt(0, 99) < chance)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user