mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-25 14:38:20 +00:00
Removed Magic Numbers
This commit is contained in:
committed by
RoTPvP
parent
5da1261ffc
commit
727a2cc0cc
@@ -437,6 +437,8 @@ static const uint8 SkillDamageTypes[EQ::skills::HIGHEST_SKILL + 1] = // change t
|
|||||||
#define INVALID_INDEX -1
|
#define INVALID_INDEX -1
|
||||||
|
|
||||||
static const uint32 MAX_SPELL_DB_ID_VAL = 65535;
|
static const uint32 MAX_SPELL_DB_ID_VAL = 65535;
|
||||||
|
static const uint32 DB_SPELL_CAZIC_TOUCH = 982;
|
||||||
|
static const uint32 DB_SPELL_TOUCH_OF_VINITRAS = 2859;
|
||||||
|
|
||||||
enum ChatChannelNames : uint16
|
enum ChatChannelNames : uint16
|
||||||
{
|
{
|
||||||
|
|||||||
+1
-1
@@ -2045,7 +2045,7 @@ bool Mob::SpellFinished(uint16 spell_id, Mob *spell_target, CastingSlot slot, ui
|
|||||||
return false;
|
return false;
|
||||||
|
|
||||||
//Cazic Touch targets the pet owner instead of the pet when said pet is tanking.
|
//Cazic Touch targets the pet owner instead of the pet when said pet is tanking.
|
||||||
if (RuleB(Spells,CazicTouchTargetsPetOwner) && spell_id == 982 && spell_target->HasOwner()) {
|
if ((RuleB(Spells, CazicTouchTargetsPetOwner) && spell_target->HasOwner()) && spell_id == DB_SPELL_CAZIC_TOUCH || spell_id == DB_SPELL_TOUCH_OF_VINITRAS) {
|
||||||
Mob* owner = spell_target->GetOwner();
|
Mob* owner = spell_target->GetOwner();
|
||||||
|
|
||||||
if (owner)
|
if (owner)
|
||||||
|
|||||||
Reference in New Issue
Block a user