Changeset 122 for trunk/src/bindings
- Timestamp:
- 11/19/08 13:38:14 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bindings/scripts/scripts/zone/sunwell_plateau/boss_felmyst.cpp
r90 r122 158 158 FlightCount = 0; 159 159 160 m_creature->RemoveUnitMovementFlag(MOVEMENTFLAG_LEVITATING );160 m_creature->RemoveUnitMovementFlag(MOVEMENTFLAG_LEVITATING + MOVEMENTFLAG_ONTRANSPORT); 161 161 m_creature->SetFloatValue(UNIT_FIELD_BOUNDINGRADIUS, 10); 162 162 m_creature->SetFloatValue(UNIT_FIELD_COMBATREACH, 10); 163 163 164 164 DespawnSummons(MOB_VAPOR_TRAIL); 165 m_creature->setActive(false); 165 166 } 166 167 167 168 void Aggro(Unit *who) 168 169 { 170 m_creature->setActive(true); 169 171 DoZoneInCombat(); 170 172 m_creature->CastSpell(m_creature, AURA_SUNWELL_RADIANCE, true); … … 283 285 m_creature->GetMotionMaster()->Clear(false); 284 286 m_creature->HandleEmoteCommand(EMOTE_ONESHOT_LIFTOFF); 285 m_creature->SetUnitMovementFlags(MOVEMENTFLAG_LEVITATING );287 m_creature->SetUnitMovementFlags(MOVEMENTFLAG_LEVITATING + MOVEMENTFLAG_ONTRANSPORT); 286 288 m_creature->StopMoving(); 287 289 DoYell(YELL_TAKEOFF, LANG_UNIVERSAL, NULL); … … 290 292 break; 291 293 case 1: 292 m_creature->AddUnitMovementFlag(MOVEMENTFLAG_ONTRANSPORT);293 294 m_creature->GetMotionMaster()->MovePoint(0, m_creature->GetPositionX()+1, m_creature->GetPositionY(), m_creature->GetPositionZ()+10); 294 m_creature->RemoveUnitMovementFlag(MOVEMENTFLAG_ONTRANSPORT);295 295 Timer[EVENT_FLIGHT_SEQUENCE] = 0; 296 296 break; 297 297 case 2: 298 if(Player* target = SelectRandomPlayer( 50))298 if(Player* target = SelectRandomPlayer(150)) 299 299 { 300 300 Creature* Vapor = m_creature->SummonCreature(MOB_VAPOR, target->GetPositionX()-5+rand()%10, target->GetPositionY()-5+rand()%10, target->GetPositionZ(), 0, TEMPSUMMON_TIMED_DESPAWN, 9000); … … 312 312 DespawnSummons(MOB_VAPOR_TRAIL); 313 313 //m_creature->CastSpell(m_creature, SPELL_VAPOR_SELECT); need core support 314 if(Player* target = SelectRandomPlayer( 50))314 if(Player* target = SelectRandomPlayer(150)) 315 315 { 316 316 //target->CastSpell(target, SPELL_VAPOR_SUMMON, true); need core support … … 331 331 break; 332 332 case 5: 333 if(Player* target = SelectRandomPlayer( 80))333 if(Player* target = SelectRandomPlayer(150)) 334 334 { 335 335 BreathX = target->GetPositionX(); 336 336 BreathY = target->GetPositionY(); 337 337 float x, y, z; 338 target->GetContactPoint(m_creature, x, y, z, 40); 339 m_creature->AddUnitMovementFlag(MOVEMENTFLAG_ONTRANSPORT); 338 target->GetContactPoint(m_creature, x, y, z, 70); 340 339 m_creature->GetMotionMaster()->MovePoint(0, x, y, z+10); 341 m_creature->RemoveUnitMovementFlag(MOVEMENTFLAG_ONTRANSPORT);342 340 }else EnterEvadeMode(); 343 341 Timer[EVENT_FLIGHT_SEQUENCE] = 0; … … 356 354 x = 2 * BreathX - x; 357 355 y = 2 * BreathY - y; 358 m_creature->AddUnitMovementFlag(MOVEMENTFLAG_ONTRANSPORT);359 356 m_creature->GetMotionMaster()->MovePoint(0, x, y, z); 360 m_creature->RemoveUnitMovementFlag(MOVEMENTFLAG_ONTRANSPORT);361 357 } 362 358 Timer[EVENT_SUMMON_FOG] = 1; … … 375 371 float x, y, z; 376 372 target->GetContactPoint(m_creature, x, y, z); 377 m_creature->AddUnitMovementFlag(MOVEMENTFLAG_ONTRANSPORT);378 373 m_creature->GetMotionMaster()->MovePoint(0, x, y, z); 379 m_creature->RemoveUnitMovementFlag(MOVEMENTFLAG_ONTRANSPORT);380 374 }else EnterEvadeMode(); 381 375 Timer[EVENT_FLIGHT_SEQUENCE] = 0; 382 376 break; 383 377 case 10: 384 m_creature->RemoveUnitMovementFlag(MOVEMENTFLAG_LEVITATING );378 m_creature->RemoveUnitMovementFlag(MOVEMENTFLAG_LEVITATING + MOVEMENTFLAG_ONTRANSPORT); 385 379 m_creature->StopMoving(); 386 380 m_creature->HandleEmoteCommand(EMOTE_ONESHOT_LAND); … … 440 434 break; 441 435 case EVENT_ENCAPSULATE: 442 if(Unit* target = SelectRandomPlayer( 50))436 if(Unit* target = SelectRandomPlayer(150)) 443 437 { 444 438 m_creature->CastSpell(target, SPELL_ENCAPSULATE_CHANNEL, false);