mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +00:00
[7776] Completed implementation of CMSG_SPELLCLICK
For vehicles, you have to add the correct SPELL_AURA_CONTROL_VEHICLE spells to npc_spellclick_spells, otherwise you won't be able to use them
This commit is contained in:
parent
6e87802fa5
commit
fefe56e3c5
19 changed files with 225 additions and 39 deletions
|
|
@ -1108,6 +1108,19 @@ void Spell::EffectDummy(uint32 i)
|
|||
m_caster->CastSpell(m_caster, 30452, true, NULL);
|
||||
return;
|
||||
}
|
||||
case 51592: // Pickup Primordial Hatchling
|
||||
{
|
||||
if(!unitTarget || unitTarget->GetTypeId() != TYPEID_UNIT)
|
||||
return;
|
||||
|
||||
Creature* creatureTarget = (Creature*)unitTarget;
|
||||
|
||||
creatureTarget->setDeathState(JUST_DIED);
|
||||
creatureTarget->RemoveCorpse();
|
||||
creatureTarget->SetHealth(0); // just for nice GM-mode view
|
||||
return;
|
||||
|
||||
}
|
||||
case 52308:
|
||||
{
|
||||
switch(i)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue