mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-06 00:32:25 +00:00
conversion of uint32 to uint16 explicitly
This commit is contained in:
parent
09dd722bcd
commit
c15eb27b5a
@ -180,7 +180,7 @@ bool Mob::CastSpell(uint16 spell_id, uint16 target_id, uint16 slot,
|
||||
if(IsClient())
|
||||
CastToClient()->SendSpellBarEnable(spell_id);
|
||||
if(casting_spell_id && IsNPC())
|
||||
CastToNPC()->AI_Event_SpellCastFinished(false, casting_spell_slot);
|
||||
CastToNPC()->AI_Event_SpellCastFinished(false, (uint8)casting_spell_slot);
|
||||
return(false);
|
||||
}
|
||||
|
||||
@ -200,7 +200,7 @@ bool Mob::CastSpell(uint16 spell_id, uint16 target_id, uint16 slot,
|
||||
if(IsClient())
|
||||
CastToClient()->SendSpellBarEnable(spell_id);
|
||||
if(casting_spell_id && IsNPC())
|
||||
CastToNPC()->AI_Event_SpellCastFinished(false, casting_spell_slot);
|
||||
CastToNPC()->AI_Event_SpellCastFinished(false, (uint8)casting_spell_slot);
|
||||
return(false);
|
||||
}
|
||||
|
||||
@ -793,7 +793,7 @@ void Mob::InterruptSpell(uint16 message, uint16 color, uint16 spellid)
|
||||
}
|
||||
|
||||
if(casting_spell_id && IsNPC()) {
|
||||
CastToNPC()->AI_Event_SpellCastFinished(false, casting_spell_slot);
|
||||
CastToNPC()->AI_Event_SpellCastFinished(false, (uint8)casting_spell_slot);
|
||||
}
|
||||
|
||||
if(casting_spell_type == 1 && IsClient()) { //Rest AA Timer on failed cast
|
||||
@ -2139,7 +2139,7 @@ bool Mob::SpellFinished(uint16 spell_id, Mob *spell_target, uint16 slot, uint16
|
||||
}
|
||||
|
||||
if(IsNPC())
|
||||
CastToNPC()->AI_Event_SpellCastFinished(true, slot);
|
||||
CastToNPC()->AI_Event_SpellCastFinished(true, (uint8)slot);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user