1401 {
1402 if (reportUse)
1403 return false;
1404
1406 if (!owner)
1407 return true;
1408
1412 {
1416 {
1418 {
1420 }
1422 {
1424 }
1425 }
1426 break;
1430 {
1432 {
1434 }
1436 {
1438 }
1439 }
1440 break;
1441 }
1442
1443 if (!stoneSpell)
1444 {
1445 return true;
1446 }
1447
1449 if (!spellInfo)
1450 {
1451 return true;
1452 }
1453
1455 if (!stoneId)
1456 {
1458 {
1460 }
1461 return true;
1462 }
1463
1465 {
1467 {
1469 }
1470 return true;
1471 }
1472
1473
1475 {
1477 {
1479 }
1480 return true;
1481 }
1482
1483 player->
CastSpell(player, stoneSpell,
false);
1484
1485
1487 {
1489 }
1490
1491 return true;
1492 }
std::uint32_t uint32
Definition: Define.h:108
@ TYPEID_PLAYER
Definition: ObjectGuid.h:38
#define sSpellMgr
Definition: SpellMgr.h:825
@ GO_SOUL_WELL_R1
Definition: go_scripts.cpp:1370
@ SPELL_CREATE_FEL_HEALTH_STONE_R1
Definition: go_scripts.cpp:1381
@ SPELL_CREATE_MASTER_HEALTH_STONE_R1
Definition: go_scripts.cpp:1377
@ SPELL_IMPROVED_HEALTH_STONE_R1
Definition: go_scripts.cpp:1373
@ SPELL_CREATE_FEL_HEALTH_STONE_R2
Definition: go_scripts.cpp:1382
@ SPELL_CREATE_MASTER_HEALTH_STONE_R2
Definition: go_scripts.cpp:1378
@ SPELL_CREATE_MASTER_HEALTH_STONE_R0
Definition: go_scripts.cpp:1376
@ GO_SOUL_WELL_R2
Definition: go_scripts.cpp:1371
@ SPELL_CREATE_FEL_HEALTH_STONE_R0
Definition: go_scripts.cpp:1380
@ 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:1236
void AddUse()
Definition: GameObject.h:241
Player * ToPlayer()
Definition: Object.h:195
TypeID GetTypeId() const
Definition: Object.h:121
uint32 GetEntry() const
Definition: Object.h:109
bool IsInSameRaidWith(Player const *p) const
Definition: Player.h:1849
bool HasItemCount(uint32 item, uint32 count=1, bool inBankAlso=false) const
Definition: PlayerStorage.cpp:683
bool HasAura(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint8 reqEffMask=0) const
Definition: Unit.cpp:5636
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:1169
static void SendCastResult(Player *caster, SpellInfo const *spellInfo, uint8 castCount, SpellCastResult result, SpellCustomErrors customError=SPELL_CUSTOM_ERROR_NONE)
Definition: Spell.cpp:4645
Definition: SpellInfo.h:314
std::array< SpellEffectInfo, MAX_SPELL_EFFECTS > Effects
Definition: SpellInfo.h:391