1453 {
1454 if (reportUse)
1455 return false;
1456
1458 if (!owner)
1459 return true;
1460
1464 {
1468 {
1470 {
1472 }
1474 {
1476 }
1477 }
1478 break;
1482 {
1484 {
1486 }
1488 {
1490 }
1491 }
1492 break;
1493 }
1494
1495 if (!stoneSpell)
1496 {
1497 return true;
1498 }
1499
1501 if (!spellInfo)
1502 {
1503 return true;
1504 }
1505
1507 if (!stoneId)
1508 {
1510 {
1512 }
1513 return true;
1514 }
1515
1517 {
1519 {
1521 }
1522 return true;
1523 }
1524
1525
1527 {
1529 {
1531 }
1532 return true;
1533 }
1534
1535 player->
CastSpell(player, stoneSpell,
false);
1536
1537
1539 {
1541 }
1542
1543 return true;
1544 }
std::uint32_t uint32
Definition: Define.h:107
#define sSpellMgr
Definition: SpellMgr.h:825
@ SPELL_IMPROVED_HEALTH_STONE_R2
Definition: go_scripts.cpp:1426
@ GO_SOUL_WELL_R1
Definition: go_scripts.cpp:1422
@ SPELL_CREATE_FEL_HEALTH_STONE_R1
Definition: go_scripts.cpp:1433
@ SPELL_CREATE_MASTER_HEALTH_STONE_R1
Definition: go_scripts.cpp:1429
@ SPELL_IMPROVED_HEALTH_STONE_R1
Definition: go_scripts.cpp:1425
@ SPELL_CREATE_FEL_HEALTH_STONE_R2
Definition: go_scripts.cpp:1434
@ SPELL_CREATE_MASTER_HEALTH_STONE_R2
Definition: go_scripts.cpp:1430
@ SPELL_CREATE_MASTER_HEALTH_STONE_R0
Definition: go_scripts.cpp:1428
@ GO_SOUL_WELL_R2
Definition: go_scripts.cpp:1423
@ SPELL_CREATE_FEL_HEALTH_STONE_R0
Definition: go_scripts.cpp:1432
@ EFFECT_0
Definition: SharedDefines.h:31
@ SPELL_FAILED_ERROR
Definition: SharedDefines.h:981
@ SPELL_FAILED_TARGET_NOT_IN_RAID
Definition: SharedDefines.h:1088
@ SPELL_FAILED_TOO_MANY_OF_ITEM
Definition: SharedDefines.h:1078
GameObject *const me
Definition: GameObjectAI.h:36
Unit * GetOwner() const
Definition: GameObject.cpp:1238
void AddUse()
Definition: GameObject.h:240
bool IsPlayer() const
Definition: Object.h:197
Player * ToPlayer()
Definition: Object.h:198
uint32 GetEntry() const
Definition: Object.h:112
bool IsInSameRaidWith(Player const *p) const
Definition: Player.h:1866
bool HasItemCount(uint32 item, uint32 count=1, bool inBankAlso=false) const
Definition: PlayerStorage.cpp:661
bool HasAura(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint8 reqEffMask=0) const
Definition: Unit.cpp:5669
SpellCastResult CastSpell(SpellCastTargets const &targets, SpellInfo const *spellInfo, CustomSpellValues const *value, TriggerCastFlags triggerFlags=TRIGGERED_NONE, Item *castItem=nullptr, AuraEffect const *triggeredByAura=nullptr, ObjectGuid originalCaster=ObjectGuid::Empty)
Definition: Unit.cpp:1168
static void SendCastResult(Player *caster, SpellInfo const *spellInfo, uint8 castCount, SpellCastResult result, SpellCustomErrors customError=SPELL_CUSTOM_ERROR_NONE)
Definition: Spell.cpp:4661
Definition: SpellInfo.h:316
std::array< SpellEffectInfo, MAX_SPELL_EFFECTS > Effects
Definition: SpellInfo.h:393