[Feature] Change mana_used to int32 (#2321)

* Changed mana_used to use int32,
to match int32 mana_cost
This will allow higher mana costs to function

* Corrected DoHPToManaCovert to Int32

* Removed unused uint16 GetMana function call from Server/zone/questmgr.h

* Change GetSkillDmgAmt from Int16 to Int32 (SkillDamageAmount2 which uses function is Int32)

* Delete mob.cpp

* Revert "Delete mob.cpp"

This reverts commit 3db8bf04d1.

* Revert "Change GetSkillDmgAmt from Int16 to Int32 (SkillDamageAmount2 which uses function is Int32)"

This reverts commit cf5dbc9ce8.

Co-authored-by: dmcintosh-BCT <dan@blackcreektechnologies.com>
This commit is contained in:
Aeadoin
2022-07-30 14:36:48 -04:00
committed by GitHub
parent 6e2d11a283
commit 25705878d8
4 changed files with 6 additions and 7 deletions
+1 -1
View File
@@ -7077,7 +7077,7 @@ uint16 Mob::GetSympatheticSpellProcID(uint16 spell_id)
return 0;
}
bool Mob::DoHPToManaCovert(uint16 mana_cost)
bool Mob::DoHPToManaCovert(int32 mana_cost)
{
if (spellbonuses.HPToManaConvert){
int64 hp_cost = spellbonuses.HPToManaConvert * mana_cost / 100;