mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-17 07:18:37 +00:00
[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 commit3db8bf04d1. * Revert "Change GetSkillDmgAmt from Int16 to Int32 (SkillDamageAmount2 which uses function is Int32)" This reverts commitcf5dbc9ce8. Co-authored-by: dmcintosh-BCT <dan@blackcreektechnologies.com>
This commit is contained in:
+2
-2
@@ -1288,7 +1288,7 @@ void Mob::StopCastSpell(int32 spell_id, bool send_spellbar_enable)
|
||||
// just check timed spell specific things before passing off to SpellFinished
|
||||
// which figures out proper targets etc
|
||||
void Mob::CastedSpellFinished(uint16 spell_id, uint32 target_id, CastingSlot slot,
|
||||
uint16 mana_used, uint32 inventory_slot, int16 resist_adjust)
|
||||
int32 mana_used, uint32 inventory_slot, int16 resist_adjust)
|
||||
{
|
||||
if (!IsValidSpell(spell_id))
|
||||
{
|
||||
@@ -2260,7 +2260,7 @@ bool Mob::DetermineSpellTargets(uint16 spell_id, Mob *&spell_target, Mob *&ae_ce
|
||||
// only used from CastedSpellFinished, and procs
|
||||
// we can't interrupt in this, or anything called from this!
|
||||
// if you need to abort the casting, return false
|
||||
bool Mob::SpellFinished(uint16 spell_id, Mob *spell_target, CastingSlot slot, uint16 mana_used,
|
||||
bool Mob::SpellFinished(uint16 spell_id, Mob *spell_target, CastingSlot slot, int32 mana_used,
|
||||
uint32 inventory_slot, int16 resist_adjust, bool isproc, int level_override,
|
||||
uint32 timer, uint32 timer_duration, bool from_casted_spell, uint32 aa_id)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user