mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 04:37:00 +00:00
[9182] Replace 0 with NULL in a few CastSpell calls (removed where not needed)
Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
parent
0d6b7f144c
commit
dbf0fafbfe
6 changed files with 15 additions and 15 deletions
|
|
@ -339,7 +339,7 @@ void GameObject::Update(uint32 /*p_time*/)
|
|||
{
|
||||
Unit *caster = owner ? owner : ok;
|
||||
|
||||
caster->CastSpell(ok, goInfo->trap.spellId, true, 0, 0, GetGUID());
|
||||
caster->CastSpell(ok, goInfo->trap.spellId, true, NULL, NULL, GetGUID());
|
||||
m_cooldownTime = time(NULL) + 4; // 4 seconds
|
||||
|
||||
// count charges
|
||||
|
|
@ -804,7 +804,7 @@ void GameObject::TriggeringLinkedGameObject( uint32 trapEntry, Unit* target)
|
|||
// found correct GO
|
||||
// FIXME: when GO casting will be implemented trap must cast spell to target
|
||||
if(trapGO)
|
||||
target->CastSpell(target,trapSpell,true, 0, 0, GetGUID());
|
||||
target->CastSpell(target, trapSpell, true, NULL, NULL, GetGUID());
|
||||
}
|
||||
|
||||
GameObject* GameObject::LookupFishingHoleAround(float range)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue