[DiscordArchive] anyone know how to enable a spell on certain maps only?
[DiscordArchive] anyone know how to enable a spell on certain maps only?
Archived author: Chaz • Posted: 2019-07-14T23:13:27.975000+00:00
Original source
anyone know how to enable a spell on certain maps only?
Archived author: Chaz • Posted: 2019-07-14T23:13:34.284000+00:00
Original source
spellInfo->mapid maybe?
Archived author: Chaz • Posted: 2019-07-14T23:13:34.810000+00:00
Original source
idk
Archived author: Chaz • Posted: 2019-07-14T23:13:38.953000+00:00
Original source
in spellmgr.cpp
Archived author: Chaz • Posted: 2019-07-15T00:31:33.151000+00:00
Original source
^ fixed it nevermind
Archived author: Chaz • Posted: 2019-07-15T00:31:34.598000+00:00
Original source
`switch (m_spellInfo->Id)
{
case 31700:
if (m_caster->GetMapId() == 530 m_caster->GetMapId() == 571 m_caster->GetMapId() == 0 m_caster->GetMapId() == 1 m_caster->GetMapId() == 733)
{
break;
}
else
return SPELL_FAILED_NOT_HERE;
break;
}`
Archived author: Chaz • Posted: 2019-07-15T00:31:57.416000+00:00
Original source
spell.cpp