Core/ConditionMgr: added CONDITION_SOURCE_TYPE_VEHICLE_SPELL, sourceGroup=creatureTemplate.entry, sourceEntry=spellEntry
--HG-- branch : trunk
This commit is contained in:
@@ -19028,6 +19028,12 @@ void Player::VehicleSpellInitialize()
|
||||
if (!spellInfo)
|
||||
continue;
|
||||
|
||||
ConditionList conditions = sConditionMgr.GetConditionsForVehicleSpell(veh->ToCreature()->GetEntry(), spellId);
|
||||
if (!sConditionMgr.IsPlayerMeetToConditions(this, conditions))
|
||||
{
|
||||
sLog.outDebug("VehicleSpellInitialize: conditions not met for Vehicle entry %u spell %u", veh->ToCreature()->GetEntry(), spellId);
|
||||
continue;
|
||||
}
|
||||
if (IsPassiveSpell(spellId))
|
||||
{
|
||||
veh->CastSpell(veh, spellId, true);
|
||||
|
||||
Reference in New Issue
Block a user