mirror of
https://github.com/azerothcore/azerothcore-wotlk.git
synced 2025-11-10 21:04:26 +08:00
Compare commits
15 Commits
db2c82c3c7
...
582d7c7e6c
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
582d7c7e6c | ||
|
|
7fbd3229ec | ||
|
|
b8a654134c | ||
|
|
10bf73ac20 | ||
|
|
632e0ed190 | ||
|
|
f469a27518 | ||
|
|
05a27d11c8 | ||
|
|
d418142ba7 | ||
|
|
27d50e0dd7 | ||
|
|
fcaa1a346e | ||
|
|
584409e4f5 | ||
|
|
3d95562d6f | ||
|
|
57df36c818 | ||
|
|
cc1f1be86f | ||
|
|
de04352cd6 |
@ -152,7 +152,12 @@ class spell_dk_raise_ally : public SpellScript
|
||||
|
||||
SpellCastResult CheckCast()
|
||||
{
|
||||
Player* unitTarget = GetHitPlayer();
|
||||
ObjectGuid targetGuid = GetSpell()->m_targets.GetUnitTargetGUID();
|
||||
if (!targetGuid)
|
||||
return SPELL_FAILED_BAD_TARGETS;
|
||||
|
||||
Unit* target = ObjectAccessor::GetUnit(*(GetSpell()->GetCaster()), targetGuid);
|
||||
Player* unitTarget = target ? target->ToPlayer() : nullptr;
|
||||
if (!unitTarget)
|
||||
return SPELL_FAILED_BAD_TARGETS;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user