1175 {
1178 if (!kit)
1179 return;
1180
1181 bool extinguished = false;
1182 uint8 fireCount = 0;
1183 for (
uint8 seat = 3; seat <= 5; ++seat)
1186 {
1187 if (!extinguished)
1188 {
1190 extinguished = true;
1192 {
1194 continue;
1195 }
1196 }
1197 fireCount++;
1198 }
1199
1200 if (fireCount == 0)
1202 }
uint32 urand(uint32 min, uint32 max)
Definition: Random.cpp:44
std::uint8_t uint8
Definition: Define.h:109
@ SPELL_EXTINGUISH_FIRE
Definition: zone_icecrown.cpp:1050
@ SPELL_BURNING
Definition: zone_icecrown.cpp:1048
@ SPELL_COSMETIC_FIRE
Definition: zone_icecrown.cpp:1049
Vehicle * GetVehicle() const
Definition: Unit.h:1786
SpellCastResult CastSpell(SpellCastTargets const &targets, SpellInfo const *spellInfo, CustomSpellValues const *value, TriggerCastFlags triggerFlags=TRIGGERED_NONE, Item *castItem=nullptr, AuraEffect const *triggeredByAura=nullptr, ObjectGuid originalCaster=ObjectGuid::Empty)
Definition: Unit.cpp:1167
void RemoveAurasDueToSpell(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, uint8 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
Definition: Unit.cpp:4909
Unit * GetPassenger(int8 seatId) const
Definition: Vehicle.cpp:227
void PreventHitDefaultEffect(SpellEffIndex effIndex)
Definition: SpellScript.cpp:590
Unit * GetCaster()
Definition: SpellScript.cpp:401